Home All Groups Group Topic Archive Search About
Author
28 Jul 2006 1:05 PM
David
How can I save a database schema without the table data but include views
and stored procedures?  Thanks.

David

Author
28 Jul 2006 1:14 PM
Aaron Bertrand [SQL Server MVP]
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
>
Author
28 Jul 2006 1:21 PM
Adi
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
Author
28 Jul 2006 1:34 PM
Tibor Karaszi
http://www.karaszi.com/SQLServer/info_generate_script.asp

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
>
>

AddThis Social Bookmark Button