sysmergearticles (Transact-SQL)

 

Applies To: SQL Server

Contains one row for each merge article defined in the local database. This table is stored in the publication database.

Column nameData typeDescription
namesysnameName of the article.
typetinyintIndicates the article type, which can be one of the following:

 10 = Table.

 32 = Stored procedure (schema only).

 64 = View or indexed view (schema only).

 128 = User-defined function (schema only).

 160 = Synonym (schema only).
objidintThe object identifier.
sync_objidintThe object ID of the view representing the synchronized data set.
view_typetinyintThe type of view:

 0 = Not a view; use all of base object.

 1 = Permanent view.

 2 = Temporary view.
artiduniqueidentifierThe unique identification number for the given article.
descriptionnvarchar(255)The brief description of the article.
pre_creation_commandtinyintThe default action to take when the article is created in the subscription database:

 0 = None - if the table already exists at the Subscriber, no action is taken.

 1 = Drop - drops the table before re-creating it.

 2 = Delete -issues a delete based on the WHERE clause in the subset filter.

 3 = Truncate -same as 2, but deletes pages instead of rows. However, does not take a WHERE clause.
pubiduniqueidentifierThe ID of the publication to which the current article belongs.
nicknameintThe nickname mapping for article identification.
column_trackingintIindicates whether column tracking is implemented for the article.
statustinyintIndicates the status of the article, which can be one of the following:

 1 = Unsynced - the initial processing script to publish the table will run the next time the Snapshot Agent runs.

 2 = Active - the initial processing script to publish the table has been run.

 5 = New_inactive - to be added.

 6 = New_active - to be added.
conflict_tablesysnameThe name of the local table that contains the conflicting records for the current article. This table is supplied for information only, and its contents may be modified or deleted by custom conflict resolution routines or directly by the administrator.
creation_scriptnvarchar(255)The creation script for this article.
conflict_scriptnvarchar(255)The conflict script for this article.
article_resolvernvarchar(255)The custom row-level conflict resolver for this article.
ins_conflict_procsysnameThe procedure used to write conflict to conflict_table.
insert_procsysnameThe procedure used by the default conflict resolver to insert rows during synchronization.
update_procsysnameThe procedure used by the default conflict resolver to update rows during synchronization.
select_procsysnameThe name of an automatically generated stored procedure that the Merge Agent uses to accomplish locking, and finding columns and rows for an article.
metadata_select_procsysnameThe name of the automatically generated stored procedure used to access metadata in the merge replication system tables.
delete_procsysnameThe procedure used by the default conflict resolver to delete rows during synchronization.
schema_optionbinary(8)For the supported values of schema_option, see sp_addmergearticle (Transact-SQL).
destination_objectsysnameThe name of the table created at the Subscriber.
destination_ownersysnameThe name of the owner of the destination object.
resolver_clsidnvarchar(50)The ID of the custom conflict resolver.
subset_filterclausenvarchar(1000)The filter clause for this article.
missing_col_countintThe number of missing columns.
missing_colsvarbinary(128)The bitmap of missing columns.
excluded_colsvarbinary(128)The bitmap of the columns excluded from the article when it is sent to the Subscriber.
excluded_col_countintThe number of columns excluded.
columnsvarbinary(128)Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
deleted_colsvarbinary(128)The bitmaps of columns that have been deleted from the source table.
resolver_infonvarchar(255)The storage for additional information required by custom conflict resolvers.
view_sel_procnvarchar(290)The name of a stored procedure that the Merge Agent uses for doing the initial population of an article in a dynamically filtered publication, and for enumerating changed rows in any filtered publication.
gen_curintThe generate number for local changes to the base table of an article.
vertical_partitionintSpecifies whether column filtering is enabled on a table article. 0 indicates there is no vertical filtering and publishes all columns.
identity_supportintSpecifies whether automatic identity range handling is enabled. 1 means that identity range handling is enabled, and 0 means that there is no identity range support.
before_image_objidintThe tracking table object ID. The tracking table contains certain key column values when a publication is created with @keep_partition_changes = true.
before_view_objidintThe object ID of a view table. The view is on a table that tracks whether a row belonged at a particular Subscriber before it was deleted or updated. Applies only when a publication is created with @keep_partition_changes = true.
verify_resolver_signatureintSpecifies whether a digital signature is verified before using a resolver in merge replication:

 0 = Signature is not verified.

 1 = Signature is verified to see whether it is from a trusted source.
allow_interactive_resolverbitSpecifies whether the use of the Interactive Resolver on an article is enabled. 1 specifies that the Interactive Resolver is used on the article.
fast_multicol_updateprocbitSpecifies whether the Merge Agent has been enabled to apply changes to multiple columns in the same row in one UPDATE statement.

 0 = Issues a separate UPDATE for each column changed.

 1 = Issues an UPDATE statement which causes updates to occur to multiple columns in one statement.
check_permissionsintThe bitmap of the table-level permissions that is verified when the Merge Agent applies changes to the Publisher. check_permissions can have one of these values:

 0x00 = Permissions are not checked.

 0x10 = Checks permissions at the Publisher before INSERTs made at a Subscriber can be uploaded.

 0x20 = Checks permissions at the Publisher before UPDATEs made at a Subscriber can be uploaded.

 0x40 = Checks permissions at the Publisher before DELETEs made at a Subscriber can be uploaded.
maxversion_at_cleanupintThe highest generation for which the metadata is cleaned up.
processing_orderintIndicates the processing order of articles in a merge publication; where a value of 0 indicated that the article is unordered, and articles are processed in order from lowest to highest value. If two articles have the same value, they are processed concurrently. For more information, see Specify the Processing Order of Merge Articles.
upload_optionstinyintDefines restrictions on updates made at a Subscriber with a client subscription, which can be one of the following values.

 0 = There are no restrictions on updates made at a Subscriber with a client subscription; all changes are uploaded to the Publisher.

 1 = Changes are allowed at a Subscriber with a client subscription, but they are not uploaded to the Publisher.

 2 = Changes are not allowed at a Subscriber with a client subscription.

For more information, see Optimize Merge Replication Performance with Download-Only Articles.
published_in_tran_pubbitIndicates that an article in a merge publication is also published in a transactional publication.

 0 = The article is not published in a transactional article.

 1 = The article is also published in a transactional article.
lightweightbitIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
procname_postfixnchar(32)Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
well_partitioned_lightweightbitIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
before_upd_view_objidintTo be added.
delete_trackingbitIndicates whether deletes are replicated.

 0 = Deletes are not replicated

 1 = Deletes are replicated, which is the default behavior for merge replication.

When the value of delete_tracking is 0, rows deleted at the Subscriber must be manually removed at the Publisher, and rows deleted at the Publisher must be manually removed at the Subscriber.

Note: A value of 0 results in non-convergence.
compensate_for_errorsbitIndicates whether compensating actions are taken when errors are encountered during synchronization.

 0 = Compensating actions are disabled.

 1 = Changes that cannot be applied at a Subscriber or Publisher always lead to compensating actions to undo these changes, which is the default behavior for merge replication.

Note: A value of 0 results in non-convergence.
pub_rangebigintThe publisher identity range size.
rangebigintThe size of the consecutive identity values that would be assigned to subscribers in an adjustment.
thresholdintThe identity range threshold percentage.
stream_blob_columnsbitSpecifies whether a data stream optimization is used when replicating binary large object columns. 1 means that the optimization is attempted.
preserve_rowguidcolbitIndicates if replication uses an existing rowguid column. A value of 1 means that an existing ROWGUIDCOL column is used. 0 means that replication added the ROWGUIDCOL column.

Replication Tables (Transact-SQL)
Replication Views (Transact-SQL)
sp_addmergearticle (Transact-SQL)
sp_changemergearticle (Transact-SQL)
sp_helpmergearticle (Transact-SQL)

Community Additions

ADD
Show: