|
|
Question : Backup SQL 2005 Database Structure Without Data
|
|
Here's what I'm trying to do...
I have a single database in SQL 2005 that has an important structure, but the data can be replaced. I would like to backup the database, but in total it is about 40 GB and I don't care to store that much - as I said I don't need the data, just the structure. Is there a way to script the database, it's tables, and indexes, but leave the data behind? If I go this route, can and should I also do the same for the 4 system databases (master, model, msdb, and tempdb)?
I need to be able to store the structure off site to be used to recreate the database if disaster strikes.
Thanks! Bart
|
Answer : Backup SQL 2005 Database Structure Without Data
|
|
Hi Bart,
In SSMS, open Object explorer.
Right click on database and choose All Tasks | Generate Scripts.
A wizard starts ... give that a look.
Regards David
|
|
|
|
|