|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Save Schema OnlyHow can I save a database schema without the table data but include views
and stored procedures? Thanks. David Create an empty database, then use a synchronization tool like Red-Gate's
SQL Compare. It will copy objects but migrating data is a separate step (and actually uses a different tool, SQL Data Compare). Once the new database is ready it should take you all of about 30 seconds to generate all of the objects. Show quote "David" <dlch***@lifetimeinc.com> wrote in message news:uzoj3bksGHA.3556@TK2MSFTNGP03.phx.gbl... > How can I save a database schema without the table data but include views > and stored procedures? Thanks. > > David > Hi David
You can save the scripts of all the objects in your database. Right click on the database, and then select all tasks from the menu. From the new menu select the option Generate SQL Script. Adi David wrote: Show quote > How can I save a database schema without the table data but include views > and stored procedures? Thanks. > > David
http://www.karaszi.com/SQLServer/info_generate_script.asp
--
Show quote
Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "David" <dlch***@lifetimeinc.com> wrote in message news:uzoj3bksGHA.3556@TK2MSFTNGP03.phx.gbl...
> How can I save a database schema without the table data but include views > and stored procedures? Thanks. > > David > > |
|||||||||||||||||||||||