<sp***********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Is there a way to copy the structure from one database to another
without affecting the actual data?
For example, I added new fields and stored procedures to a db in my
development environment. There are a lot of them.
I now want to make the same changes to my production environment db but
don't want to affect the data. Only the fields, stored procs &
constraints and stuff pertaining to the structure of the db should be
changed.
Does anyone know of a program that can do this or can this be done in
MS SQL Enterprise Manager.
Any help would be appreciated.
7078895
You can generate object creation scripts from Enterprise Manager, then run
them on the production system, but this can only create objects, it can't
compare them, so it's fine for stored procs, but not for adding individual
columns to tables. Alternatively, there are third-party tools available,
such as this one:
http://www.red-gate.com/SQL_Compare.htm
However, the real answer is probably that you need source control for your
SQL code, as well as a standard deployment method and/or tool. There are
lots of discussions in this newsgroup (and others) about this - you can
search for "source control" to find them.
Simon