Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Duplicating a SQL database

Author  Topic 

benking9987
Posting Yak Master

124 Posts

Posted - 2009-03-13 : 13:56:31
I am a DBA for a company that has two different divisions that operate completely apart from eachother. I have developed an inventory database that handles all of the needs for one division (which I spend 95% of my time with), now the second division wants the same technology for handling their inventory.

What is the best way to copy all of the structure of my tables to another SQL server I have built in their division? Any suggestions would be helpful. Also, this may be a stretch, but is it possible to cascade updates from one database to the others to avoid having to duplicate my efforts each time I want to update the functionality?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-13 : 13:58:47
do you mean duplicating just database structure alone or along with data?
Go to Top of Page

benking9987
Posting Yak Master

124 Posts

Posted - 2009-03-13 : 14:46:17
Just the structure. I will populate the new database with data that applies to the other division of my company.
Go to Top of Page

Itamar
Starting Member

19 Posts

Posted - 2009-03-16 : 17:20:44
You could use the build-in import and export tool, but it can be done much more efficiently with some 3rd party tool such as SQL VERSION CONTROL SOLUTION - [url]http://nobhillsoft.com/Randolph.aspx[/url]

http://www.nobhillsoft.com
Database tools, SQL,MySQL...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-17 : 10:43:14
quote:
Originally posted by benking9987

Just the structure. I will populate the new database with data that applies to the other division of my company.


script out database using sql management studio and apply script to create new db

http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
Go to Top of Page
   

- Advertisement -