Метод DistributionDatabase.CreateQueueReaderAgent
Creates the Queue Reader Agent job on the distribution database.
Пространство имен: Microsoft.SqlServer.Replication
Сборка: Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)
Синтаксис
'Декларация
Public Sub CreateQueueReaderAgent
'Применение
Dim instance As DistributionDatabase
instance.CreateQueueReaderAgent()
public void CreateQueueReaderAgent()
public:
void CreateQueueReaderAgent()
member CreateQueueReaderAgent : unit -> unit
public function CreateQueueReaderAgent()
Замечания
The CreateQueueReaderAgent method can only be called by members of the sysadmin fixed server role at the Distributor or by members of the db_owner fixed database role on the distribution database.
Calling CreateQueueReaderAgent is equivalent to executing sp_addqreader_agent.