Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a Database

Status
Not open for further replies.

jalbao

Programmer
Nov 27, 2000
413
US
i have an existing database that i would like my 'model' database to be exactly like (excluding the table data).

for example: MyDBase is the name of a database that contains the tables that i need for my app. Th table in MyDBase also contains data. I want to somehow make the sql server 'model' database have the exact structure as MyDBase but without the table data.

how do i go about doing this?
 
not sure if this helps.
if MyDBase is a SQL Server database, then you should be able to generate a SQL script which will write the structure of MYDBase (tables, views, sp etc..).

you can then run this script in the destination database to create all objects with the same structure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top