Showing posts with label manage. Show all posts
Showing posts with label manage. Show all posts

Wednesday, March 7, 2012

DDL Best Practices question

I am looking for some examples of how to manage DDL scripts among
various versions of a production db and development and testing. I
have tried a few things in the past, and it always gets very muddled
and cumbersome.

I need to be able to build any version of the database from scratch,
BUT I also need to maintain an upgrade path from any version to any
later version. So it is not enough to just maintain a master build
script, but I don't want to maintain 2 different things (modify the
master build scripts AND create a new "ALTER" script for each version
change).

I thought I had seen an article somewhere that layed out a process for
managing this, but I can't find it now (I thought it was in SQL Server
Mag). Does anybody know of this article or have a resource they could
point me to that outlines best practices in this area?

Thanks,
Jason Wood, DBA in training."Woody" <jaydub99@.hotmail.com> wrote in message
news:a895dd46.0311241003.70d5a28d@.posting.google.c om...
> I am looking for some examples of how to manage DDL scripts among
> various versions of a production db and development and testing. I
> have tried a few things in the past, and it always gets very muddled
> and cumbersome.
> I need to be able to build any version of the database from scratch,
> BUT I also need to maintain an upgrade path from any version to any
> later version. So it is not enough to just maintain a master build
> script, but I don't want to maintain 2 different things (modify the
> master build scripts AND create a new "ALTER" script for each version
> change).
> I thought I had seen an article somewhere that layed out a process for
> managing this, but I can't find it now (I thought it was in SQL Server
> Mag). Does anybody know of this article or have a resource they could
> point me to that outlines best practices in this area?
> Thanks,
> Jason Wood, DBA in training.

One possible approach is to maintain only CREATE scripts, and use versioning
in your source control system to ensure that you can always build a given
version from scratch. To generate a upgrade script, you can then create
empty databases for the source and target versions, and use a comparison
tool such as the one from Red Gate to create a migration script. If you have
many versions, then you might do this only on demand; if you have fewer, you
might do it every time you produce a new version.

Whatever approach you take (and I'm sure there are many others which work
fine), a database comparison tool is always a good investment. The Red Gate
one is relatively cheap compared to multi-platform tools like Embarcadero,
and works very well:

http://www.red-gate.com/sql_tools.htm

Simon

Friday, February 17, 2012

DBMS for Server 2005?

Anyone know if there if there is a tool visual tool for MS SQL server 2005?
Something to manage data and tables within the database without having to
type a of bunch of commands?
Thanks
In article <46b2658b$0$4895$4c368faf@.roadrunner.com>,
allGeek@.hownerdy.com says...
> Anyone know if there if there is a tool visual tool for MS SQL server 2005?
> Something to manage data and tables within the database without having to
> type a of bunch of commands?
> Thanks
>
>
SSMS or an express version for Sql2005 -- check out BOL. Consolidates
QA and EM and ServerMgr into one tool that essentially operates as
VS2005 does.
Graham (Pete) Berry
PeteBerry@.Caltech.edu
|||"Pete Berry" <PeteBerry@.Caltech.edu> wrote in message
news:MPG.211c07e233d5732d9896a2@.msnews.microsoft.c om...
> In article <46b2658b$0$4895$4c368faf@.roadrunner.com>,
> allGeek@.hownerdy.com says...
> SSMS or an express version for Sql2005 -- check out BOL. Consolidates
> QA and EM and ServerMgr into one tool that essentially operates as
> VS2005 does.
Thanks for that reply.
I looked and see it was not installed on my server.
Looking for Disk 2 and having trouble findng it.
Is it on Disk 2?
Thanks

> --
> Graham (Pete) Berry
> PeteBerry@.Caltech.edu
|||> Looking for Disk 2 and having trouble findng it.
> Is it on Disk 2?
Run setup again and make sure you select items in Workstation Components...
Aaron Bertrand
SQL Server MVP
|||"Aaron Bertrand [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:ubn2Jxc1HHA.1184@.TK2MSFTNGP04.phx.gbl...
> Run setup again and make sure you select items in Workstation
> Components...
I am in the reinstall phase right now and I am getting this message:
================================================
The following components that you selected will not be changed:
Client Components
Warning: Setup found that the following components that already exist are at
a different service pack level than the components being installed.
Components: Microsoft SQL Server 2005 Tools Express Edition
After completing setup, you must download and apply the latest SQL Server
2005 service pack to all the components.
================================================
Looking in the directories and the start menu..I do not see where these
things are installed.
GB

> --
> Aaron Bertrand
> SQL Server MVP
>
|||"Aaron Bertrand [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:ubn2Jxc1HHA.1184@.TK2MSFTNGP04.phx.gbl...
> Run setup again and make sure you select items in Workstation
> Components...
> --
> Aaron Bertrand
> SQL Server MVP
>
After reading some more, I see tht Express edition is on it.
It had gotten installed when I did a "complete" install of VS 2005.
However shortly after realizing I did that, I removed it.
Seems the tools are still on there.
I ran the configuration to try to remove the Express Edition tools, but I
see nothing of SQL Express to remove.
|||"Aaron Bertrand [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:ubn2Jxc1HHA.1184@.TK2MSFTNGP04.phx.gbl...
> Run setup again and make sure you select items in Workstation
> Components...
>
After reading some more, I see tht Express edition is on it.
It had gotten installed when I did a "complete" install of VS 2005.
However shortly after realizing I did that, I removed it.
Seems the tools are still on there.
I ran the configuration to try to remove the Express Edition tools, but I
see nothing of SQL Express to remove.
|||On Aug 2, 4:15 pm, "GeekBoy" <allG...@.hownerdy.com> wrote:
> Anyone know if there if there is a tool visual tool for MS SQL server 2005?
> Something to manage data and tables within the database without having to
> type a of bunch of commands?
> Thanks
SQL Server 2005 Express didn't come with any visual tools. You need
to
download SQL Server Management Studio Express from
http://msdn.microsoft.com/vstudio/express/sql/download/
|||"zbenhalim" <zbenhalim@.yahoo.com> wrote in message
news:1186187280.448848.258420@.g4g2000hsf.googlegro ups.com...
> On Aug 2, 4:15 pm, "GeekBoy" <allG...@.hownerdy.com> wrote:
> SQL Server 2005 Express didn't come with any visual tools. You need
> to
> download SQL Server Management Studio Express from
> http://msdn.microsoft.com/vstudio/express/sql/download/
See my other message.
I don't need to get SQL Server Management Studio Express.
Thanks

>