syspublications (System View) (Transact-SQL)
Applies To: SQL Server 2014, SQL Server 2016 Preview
The syspublications view exposes publication information. This view is stored in the distribution database.
The descriptive entry for the publication.
The unique name associated with the publication.
The identity column providing a unique ID for the publication.
The replication frequency:
0 = Transaction based (transactional).
1 = Scheduled table refresh (snapshot).
The publication status:
0 = Inactive.
1 = Active.
The synchronization method:
0 = Native bulk copy program utility (BCP).
1 = Character BCP.
3 = Concurrent, which means that native BCP is used but tables are not locked during the snapshot.
4 = Concurrent_c, which means that character BCP is used but tables are not locked during the snapshot.
Identifies the agent job scheduled to generate the initial snapshot.
Specifies whether there is a stand-alone Distribution Agent for this publication.
0 = The publication uses a shared Distribution Agent, and each Publisher database/Subscriber database pair has a single, shared Agent.
1 = There is a stand-alone Distribution Agent for this publication.
Indicates whether the synchronization files are created or recreated each time the Snapshot Agent runs, where 1 means that they are created every time the agent runs.
Indicates whether the synchronization files for the publication are exposed to the Internet through file transfer protocol (FTP) and other services, where 1 means that they can be accessed from the Internet.
Indicates whether push subscriptions are allowed on the publication, where 1 means that they are allowed.
Indicates whether pull subscriptions are allowed on the publication, where 1 means that they are allowed.
Indicates whether anonymous subscriptions are allowed on the publication, where 1 means that they are allowed.
Indicates whether the snapshot has been generated by the Snapshot Agent and is ready for use by new subscriptions. It is only meaningful for immediate updating publications. 1 indicates that the snapshot is ready.
Specifies whether immediate-updating subscriptions are allowed on the publication. 1 means that immediate-updating subscriptions are allowed.
Specifies whether the synchronizing stored procedure for immediate-updating subscriptions is generated at the Publisher. 1 means that it is generated at the Publisher.
The amount of time, in hours, that changes to the publication are maintained in the distribution database.
Specifies whether queuing of changes at the Subscriber until they can be applied at the Publisher has been enabled. If 1, changes at the Subscriber are queued.
Specifies whether snapshot files are stored in the default folder. If 0, snapshot files have been stored in the alternate location specified by alternate_snapshot_folder. If 1, snapshot files can be found in the default folder.
Specifies the location of the alternate folder for the snapshot.
Specifies a pointer to a .sql file location. The Distribution Agent runs the pre-snapshot script before running any of the replicated object scripts when applying a snapshot at a Subscriber.
Specifies a pointer to a .sql file location. The Distribution Agent runs the post-snapshot script after all the other replicated object scripts and data have been applied during an initial synchronization.
Specifies that the snapshot that is written to the alt_snapshot_folder location is to be compressed into the Microsoft CAB format. 1 means that the snapshot will be compressed.
The network address of the FTP service for the Distributor. Specifies where publication snapshot files are located for the Distribution Agent to pick up.
The port number of the FTP service for the Distributor. Specifies where the publication snapshot files are located for the Distribution Agent to pick up.
Specifies where the snapshot files are available for the Distribution Agent to pick up if the publication supports propagating snapshots using FTP.
The username used to connect to the FTP service.
The user password used to connect to the FTP service.
Specifies whether the publication allows SQL Server 2000 Data Transformation Services (DTS) transformations. 1 specifies that DTS transformations are allowed.
Specifies whether the ability to copy the subscription databases that subscribe to this publication has been enabled. 1 means that copying is allowed.
Specifies whether conflict records are stored on the Publisher:
0 = Conflict records are stored at both the publisher and at the subscriber that caused the conflict.
1 = Conflict records are stored at the Publisher.
Specifies the retention period for conflict records, in days.
Specifies the conflict resolution policy followed when the queued updating subscriber option is used. Can be one of these values:
1 = Publisher wins the conflict.
2 = Subscriber wins the conflict.
3 = Subscription is reinitialized.
Specifies which type of queue is used. Can be one of these values:
1 = .msmq, which uses Microsoft Message Queuing to store transactions.
2 = .sql, which uses SQL Server to store transactions.
Note: Using Microsoft Message Queuing has been deprecated and is no longer supported.
Specifies whether the publication is published in the Microsoft Active Directory. A valid globally-unique identifier (GUID) specifies that the publication is published in the Active Directory, and the GUID is the corresponding Active Directory publication object objectGUID. If NULL, the publication is not published in Active Directory.
Note: Publishing to Active Directory is no longer supported.
Database compatibility level, which can be one of the following values:
90 = SQL Server 2005.
100 = SQL Server 2008.
Indicates whether Subscribers can initialize a subscription to this publication from a backup rather than an initial snapshot. 1 means that subscriptions can be initialized from a backup, and 0 means that they cannot. For more information, see Initialize a Transactional Subscription Without a Snapshot.
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Indicates whether schema replication is supported for the publication.
1 = DDL statements executed at the publisher are replicated.
0 = Indicates that DDL statements are not replicated. For more information, see Make Schema Changes on Publication Databases.
A bitmap that specifies additional publishing options, where the bitwise option values are as follows:
0x1 - Enabled for peer-to-peer replication.
0x2 - Publish only local changes for peer-to-peer replication.
0x4 - Enabled for non-SQL Server subscribers.
0x8 - Enabled for peer-to-peer conflict detection.
Identifies each node in a peer-to-peer replication topology for the purposes of conflict detection. For more information, see Conflict Detection in Peer-to-Peer Replication.