MSmerge_agents (Transact-SQL)

 

Applies To: SQL Server

The MSmerge_agents table contains one row for each Merge Agent running at the Subscriber. This table is stored in the distribution database.

Column nameData typeDescription
idintThe ID of the Merge Agent.
namenvarchar(100)The name of the Merge Agent.
publisher_idsmallintThe ID of the Publisher.
publisher_dbsysnameThe name of the Publisher database.
publicationsysnameThe name of the publication.
subscriber_idsmallintThe ID of the Subscriber.
subscriber_dbsysnameThe name of the subscription database.
local_jobbitIndicates whether there is a SQL Server Agent job on the local Distributor.
job_idbinary(16)The job identification number.
profile_idintThe configuration ID from the MSagent_profiles table.
anonymous_subiduniqueidentifierThe ID of an anonymous agent.
subscriber_namesysnameThe name of the Subscriber.
creation_datedatetimeThe date and time that the Distribution or Merge Agent was created.
offload_enabledbitSpecifies that the agent can be activated remotely.

 0 specifies the agent cannot be activated remotely.

 1 specifies the agent will be activated remotely, and on the remote computer specified in the offload_server property.
offload_serversysnameSpecifies the network name of server to be used for remote agent activation.
sidvarbinary(85)The security identification number (SID) for the Distribution Agent or Merge Agent during its first execution.
subscriber_security_modesmallintThe security mode used by the agent when connecting to the Subscriber, which can be one of the following:

 0 = Microsoft SQL Server Authentication.

 1 = Microsoft Windows Authentication.
subscriber_loginsysnameThe login used when connecting to the Subscriber.
subscriber_passwordnvarchar(524)The encrypted value of the password that is used when connecting to the Subscriber.
publisher_security_modesmallintThe security mode used by the agent when connecting to the Publisher, which can be one of the following:

 0 = Microsoft SQL Server Authentication.

 1 = Microsoft Windows Authentication.
publisher_loginsysnameThe login used when connecting to the Publisher.
publisher_passwordnvarchar(524)The encrypted value of the password that is used when connecting to the Publisher.
job_step_uiduniqueidentifierThe unique ID of the SQL Server Agent job step in which the agent is started.

Replication Tables (Transact-SQL)
Replication Views (Transact-SQL)

Community Additions

ADD
Show: