Lists subscription information associated with a particular publication, article, Subscriber, or set of subscriptions. This stored procedure is executed at a Publisher on the publication database.
sp_helpsubscription [ [ @publication = ] 'publication' ] [ , [ @article = ] 'article' ] [ , [ @subscriber = ] 'subscriber' ] [ , [ @destination_db = ] 'destination_db' ] [ , [ @found=] found OUTPUT ] [ , [ @publisher = ] 'publisher' ]
Name of the Subscriber.
Name of the publication.
Name of the article.
Name of the destination database in which replicated data is placed.
0 = Inactive
1 = Subscribed
2 = Active
Subscription synchronization type:
1 = Automatic
2 = None
Type of subscription:
0 = Push
1 = Pull
2 = Anonymous
Whether subscription is to all articles in the publication:
0 = No
1 = Yes
Name of the subscription.
0 = Read-only
1 = Immediate-updating subscription
distribution job id
Job ID of the Distribution Agent.
Loopback detection determines whether the Distribution Agent sends transactions originated at the Subscriber back to the Subscriber:
0 = Sends back.
1 = Does not send back.
Used with bidirectional transactional replication. For more information, see Bidirectional Transactional Replication.
Specifies whether offload execution of a replication agent has been set to run at the Subscriber.
If 0, agent is run at the Publisher.
If 1, agent is run at the Subscriber.
Name of the server enabled for remote agent activation. If NULL, then the current offload_server listed in MSdistribution_agents table is used.
Specifies the name of the Data Transformation Services (DTS) package.
Location of the DTS package, if one is assigned to the subscription. If there is a package, a value of 0 specifies the package location at the distributor. A value of 1 specifies the subscriber.
Is the security mode at the Subscriber, where 1 means Windows Authentication, and 0 means SQL Server Authentication.
Is the login name at the Subscriber.
Actual Subscriber password is never returned. The result is masked by a "******" string.
Name of the Windows account under which the Distribution Agent runs.
Actual job password is never returned. The result is masked by a "******" string.
Name of the agent job that synchronizes the subscription.
Type of Subscriber, which can be one of the following:
0SQL Server Subscriber
1ODBC data source server
2Microsoft JET database (deprecated)
3OLE DB provider
Unique programmatic identifier (PROGID) with which the OLE DB provider for the non-SQL Server data source is registered.
Name of the data source as understood by the OLE DB provider.
OLE DB provider-specific connection string that identifies the data source.
Location of the database as understood by the OLE DB provider
Catalog to be used when making a connection to the OLE DB provider.
Execute permissions default to the public role. Users are only returned information for subscriptions that they created. Information on all subscriptions is returned to members of the sysadmin fixed server role at the Publisher or members of the db_owner fixed database role on the publication database.