共用方式為


ReplicationTable.DatabaseName 屬性

Gets or sets the name of the database that contains the replication table.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Property DatabaseName As String 
    Get 
    Set
'用途
Dim instance As ReplicationTable 
Dim value As String 

value = instance.DatabaseName

instance.DatabaseName = value
public string DatabaseName { get; set; }
public:
property String^ DatabaseName {
    String^ get ();
    void set (String^ value);
}
member DatabaseName : string with get, set
function get DatabaseName () : String 
function set DatabaseName (value : String)

屬性值

型別:System.String
The name of the database.

備註

The DatabaseName property cannot be set after the object properties have been loaded.

The DatabaseName property can be retrieved by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

請參閱

參考

ReplicationTable 類別

Microsoft.SqlServer.Replication 命名空間