Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Scripter.Script在 SQL Server SMO 中,和 和有什么区别Scripter.ScriptWithList?
Scripter.Script
Scripter.ScriptWithList
不同之处在于返回值。Script 方法返回一个 StringCollection 对象值,该值指定对象列表的 Tranasact-SQL 脚本。参考 Scripter.Script 方法1 ScriptWithList 方法返回一个 SqlSmoObject 对象数组值,该值指定要编写脚本的对象列表。参考 Scripter.ScriptWitList 2