November 28, 2007 at 1:56 am
Is it possible to script the entire database through a command or a query
Plz help me...
regards,
Krishna
November 28, 2007 at 2:34 am
Hi krishna,
Use SSMS, in the Object Explorer, Right click on your database, choose task the generate script.
Just follow the wizard script instructions.
Regards,
Ahmed
November 28, 2007 at 1:58 pm
you could try powershell scripts which are callable from TSQL also.
* Noel
November 28, 2007 at 2:00 pm
Sorry Noeld
What do yoy mean exactly
November 29, 2007 at 7:41 am
As it happens, I found a tool for doing exactly this yesterday.
http://www.codeplex.com/ScriptDB
I will even dump bcp extracts of the data for you if required.
Derek
November 29, 2007 at 11:16 am
I found something works really well. It calls the extend store procedures SP_OA....
November 29, 2007 at 11:28 am
script ut the database from SSMS and then use sqlcmd to run it from command line....u can customise script to accept various parameters from sqlcmd
Prakash Heda
Lead DBA Team - www.sqlfeatures.com
Video sessions on Performance Tuning and SQL 2012 HA
November 30, 2007 at 3:29 am
iceheartjade (11/29/2007)
I found something works really well. It calls the extend store procedures SP_OA....
The drawback with this is that is both the OLE Automation Procedures and xp_cmdshell are disabled by default for security reasons. ScriptDB just uses the same functions from C#.
Derek
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply