LinkedServer.Script Method

Generates a Transact-SQL script that can be used to re-create the linked server registration.

备注

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

重载列表

名称 Description
LinkedServer.Script ()
Generates a Transact-SQL script that can be used to re-create the linked server registration.
LinkedServer.Script (ScriptingOptions)
Generates a Transact-SQL script that can be used to re-create the linked server registration as specified by the script options.

请参阅

参考

LinkedServer Class
LinkedServer Members
Microsoft.SqlServer.Management.Smo Namespace

其他资源

Scripting
Using Linked Servers in SMO
链接服务器
sp_addlinkedserver (Transact-SQL)