ReplicationDatabase.QueueReaderAgentExists 屬性
Gets whether or not a Queue Reader Agent job exists for the database.
命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)
語法
'宣告
Public ReadOnly Property QueueReaderAgentExists As Boolean
Get
'用途
Dim instance As ReplicationDatabase
Dim value As Boolean
value = instance.QueueReaderAgentExists
public bool QueueReaderAgentExists { get; }
public:
property bool QueueReaderAgentExists {
bool get ();
}
member QueueReaderAgentExists : bool
function get QueueReaderAgentExists () : boolean
屬性值
型別:System.Boolean
A Boolean value that indicates whether a Queue Reader Agent job has been created for the distribution database or not.
例外狀況
例外狀況 | 條件 |
---|---|
ApplicationException | When the database does not exist. When the Queue Reader Agent has not been upgraded to the Microsoft SQL Server 2005 replication agent security model. For more information, see 安全性與保護 (複寫). |
備註
The QueueReaderAgentExists property can only be retrieved by members of the sysadmin fixed server role and members of the db_owner fixed database role.
Retrieving QueueReaderAgentExists is equivalent to executing sp_helpqreader_agent (Transact-SQL).