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 2000 Forums
 Transact-SQL (2000)
 Generate schema question with TSQL. Newbie

Author  Topic 

jtorral
Starting Member

2 Posts

Posted - 2004-06-24 : 12:15:57
Hi All,

I am fairl new to sql server and have been a long time Informix DBA. Finally making the transition. Here is a question I cannot seem to find an answer for with search engines.

With informix, I was able to run the dbschema command at the command line with parameters to generate a sql file to build my database. With sql server I see this functionality under enterprise manager "Generate sql script" I have quite a few DB's to do this against and running through the GUI over and over can become somewhat drawn out. Is there a way of generating the scripts with command line utilities?

Thanks,

JT

nr
SQLTeam MVY

12543 Posts

Posted - 2004-06-24 : 12:16:44
See
http://www.nigelrivett.net/DMOScriptAllDatabases.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -