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!

Script to do Schema Dump

Status
Not open for further replies.

GuySmiley

Technical User
Dec 3, 2001
36
US
Hi,

I am using SQL Server 2000 on my database servers and I would just like to back up the db schemas on one of the secondary servers to save tape space. Can anyone tell me what the SQL script is to dump the Schema to a text file?

Thanks a bazillion!

Guy
 
T-SQL doesn't provide a direct way to script a database. You can use SQL DMO. See SQL BOL and the Microsoft website for details about SQL DMO.

I have some VBA modules usin SQL DMO that I execute from Access to script our SQL databases. I send the code to you if you are interested. I hope to convert the modules to VB script soon so I can run scripting jobs on each server.

There is a freeware product called "SQL DevPro" which is supposed to provide scripting. I just installed it but have had difficulty getting it to work on one of my databases. You may want to download and try it.

Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top