What is the difference between Script and ScriptWithList?

In SQL Server SMO, what is the difference between Scripter.Script

and Scripter.ScriptWithList

?

+3


source to share


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







All Articles