Compartir a través de


CreateQueueReaderAgent Método

Creates the Queue Reader Agent job on the distribution database.

Espacio de nombres:  Microsoft.SqlServer.Replication
Ensamblado:  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Sintaxis

'Declaración
Public Sub CreateQueueReaderAgent
'Uso
Dim instance As DistributionDatabase

instance.CreateQueueReaderAgent()
public void CreateQueueReaderAgent()
public:
void CreateQueueReaderAgent()
member CreateQueueReaderAgent : unit -> unit 
public function CreateQueueReaderAgent()

Comentarios

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.

The CreateQueueReaderAgent method is only available with SQL Server 2005.

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.