MSmerge_genhistory (Transact-SQL)


Applies To: SQL Server

The MSmerge_genhistory table contains one row for each generation that a Subscriber knows about (within the retention period). It is used to avoid sending common generations during exchanges and to resynchronize Subscribers that are restored from backups. This table is stored in the publication and subscription databases.

Column nameData typeDescription
guidsrcuniqueidentifierThe global identifier of the changes identified by generation at the Subscriber.
pubiduniqueidentifierThe publication identifier.
generationbigintThe generation value.
art_nickintThe nickname for the article.
nicknamesvarbinary(1001)A list of nicknames of other Subscribers that are known to already have this generation. It is used to avoid sending a generation to a Subscriber that has already seen those changes. Nicknames in the nicknames list are maintained in sorted order to make searches more efficient. If there are more nicknames than can fit in this field, they will not benefit from this optimization.
coldatedatetimeDate when current generation is added to the table.
genstatustinyintThe status of the generation as follows:

 0 = Open.

 1 = Closed.

 2 = Closed and originated at another Subscriber.
changecountintThe number of changes reflected in a given generation

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

Community Additions