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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Script for deployment

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2008-12-25 : 08:57:56
One app working with SQL server need to be published.
How to make a script to save all tables (without data), views, store procedures so that this script can be run in new SQL server?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-25 : 09:45:02
Use Generate Script Task By right- clicking database.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-25 : 10:11:42
Why don't you just backup/restore to the new system?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2008-12-25 : 10:26:06
Can backup only do table structure without data?
I do not want to restore data in tables.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-25 : 18:53:35
Use the Generate Script wizard then. I missed the "without data" part in your original post.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -