Discussion:
copy one DB to another
(too old to reply)
mcnewsxp
2013-05-03 13:06:03 UTC
Permalink
when my company adds a new client I need to copy an existing database into a new database. mostly table schemas and stored procs plus several lookup tables that will include the data contained in them. I would like to automate this process.
where's a good place to start?

tia,
mcnewsw8
Erland Sommarskog
2013-05-03 19:39:31 UTC
Permalink
Post by mcnewsxp
when my company adds a new client I need to copy an existing database
into a new database. mostly table schemas and stored procs plus several
lookup tables that will include the data contained in them. I would
like to automate this process.
where's a good place to start?
Keep your code under version control, including the INSERT-files for the
lookup tables, and build the databases from scripts, as well as update the
existing databases from scripts.
--
Erland Sommarskog, SQL Server MVP, ***@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
mcnewsxp
2013-05-05 03:46:22 UTC
Permalink
Post by Erland Sommarskog
Post by mcnewsxp
when my company adds a new client I need to copy an existing database
into a new database. mostly table schemas and stored procs plus several
lookup tables that will include the data contained in them. I would
like to automate this process.
where's a good place to start?
Keep your code under version control, including the INSERT-files for the
lookup tables, and build the databases from scripts, as well as update the
existing databases from scripts.
--
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
mind chatting about that?

Continue reading on narkive:
Loading...