What is the difference between Script and ScriptWithList?
1 answer
The difference lies in the return value. The Script method returns a StringCollection object value that specifies the Tranasact-SQL scripts for the list of objects. Reference Scripter.Script Method 1 The ScriptWithList method returns a SqlSmoObject array value that specifies a list of objects to be scripted. Reference Scripter.ScriptWitList 2
0
source to share