The script generating options of Management Studio are just a wrapper around the SMO scripting capabilities. Simple scripts are obtained by using the Script()
method on various SMO types. More complex scripts are created by the specialized Scripter
class.
Command line tools can be easily created by using the SMO libraries.
Remus Rusanu
2009-08-21 03:15:32