共用方式為


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.

請參閱

參考

DistributionDatabase 類別

Microsoft.SqlServer.Replication 命名空間