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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-osql to generate database script????? Please help

Status
Not open for further replies.

sanjdhiman

Programmer
Jan 15, 2003
189
GB
Hi

A very quick question, like you have in Enterprise manager you can right click a database and then choose all tasks and Generate scripts. You get a window to choose all the objects you want to script out.

Is there anyway you can do that using osql?? is their some SQL built in stored procedures or commands which do the generating for you? SQL-DMO???? etc etc

Please help if this is possible or not

thanks

sanj
 
Can't be done via osql. It's the actual Enterprise Manager which does the scripting, not the SQL engine. That functionally wasn't built into osql.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top