LinkedServer.Catalog 属性

Gets or sets the database to be used when the linked server is made through a connection to an OLE DB provider.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property Catalog As String 
    Get 
    Set
用法
Dim instance As LinkedServer 
Dim value As String 

value = instance.Catalog

instance.Catalog = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string Catalog { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ Catalog {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member Catalog : string with get, set
function get Catalog () : String 
function set Catalog (value : String)

属性值

类型:System.String
A String value that specifies the database to be used when the linked server is made through a connection to an OLE DB provider.

示例

在 SMO 中使用链接服务器

请参阅

参考

LinkedServer 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

链接服务器(数据库引擎)

sp_addlinkedserver (Transact-SQL)