ReplicationDatabase.DBReadOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether the database is read-only or not.
public:
property bool DBReadOnly { bool get(); };
public bool DBReadOnly { get; }
member this.DBReadOnly : bool
Public ReadOnly Property DBReadOnly As Boolean
Property Value
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.
Remarks
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).