Поделиться через


Свойство ReplicationDatabase.DBReadOnly

Gets whether the database is read-only or not.

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public ReadOnly Property DBReadOnly As Boolean 
    Get
'Применение
Dim instance As ReplicationDatabase 
Dim value As Boolean 

value = instance.DBReadOnly
public bool DBReadOnly { get; }
public:
property bool DBReadOnly {
    bool get ();
}
member DBReadOnly : bool
function get DBReadOnly () : boolean

Значение свойства

Тип: System.Boolean
A Boolean value that specifies whether the database is read-only or not. If true, the database is read-only. If false, the database is read/write.

Замечания

The DBReadOnly property can be retrieved by the sysadmin fixed server role on the server, by the db_owner fixed database role on the replication database, and by a user in the public access list (PAL) for a publication published from the replication database.

Retrieving this property is equivalent to executing sp_helpreplicationdboption (Transact-SQL).

См. также

Справочник

ReplicationDatabase Класс

Пространство имен Microsoft.SqlServer.Replication