Could someone please tell me if there is someway to invoke the SQL Script Wizard programmatically or through the command line?
It's a great tool for deployment but I am sick of having to set the countless options each time I use it.
Could someone please tell me if there is someway to invoke the SQL Script Wizard programmatically or through the command line?
It's a great tool for deployment but I am sick of having to set the countless options each time I use it.
The SSMS scripting wizard is just a shell over the
Scripter
SMO object capabilities. From the scripting example on MSDN:You should be writing the scripts yourself as you create and change table structures, they should be in source control and associated with a particular release. There is no excuse for treating database changes any different than any other code and database changes should never be made using the GUI.