Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.61 KB

perform-a-dummy-update-for-a-merge-article-replication-transact-sql-programming.md

File metadata and controls

30 lines (24 loc) · 1.61 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords dev_langs
Dummy merge article update (Replication SP)
Use Transact-SQL replication stored procedures to perform a dummy update of a merge article used in merge replication.
MashaMSFT
mathoma
09/25/2024
sql
replication
how-to
updatefrequency5
sp_mergedummyupdate
dummy updates [SQL Server replication]
TSQL

Perform a Dummy Update for a Merge Article (Replication Transact-SQL Programming)

[!INCLUDE SQL Server] Merge replication uses triggers as part of the replication process; when an update is made to published table, an update trigger fires. In some cases, data can be updated without the trigger firing, such as during the WRITETEXT and UPDATETEXT operations. In these cases, you need to add a dummy UPDATE statement explicitly to replicate the change. You can add a dummy UPDATE statement using replication stored procedures.

To add a dummy UPDATE statement

  1. Execute the operation (for example, UPDATETEXT) on a row in a merge published table that requires a dummy update.

  2. At the server (Publisher or Subscriber) on the database where the change was made, execute sp_mergedummyupdate (Transact-SQL). Specify the table on which the change was made for @source_object, and the unique identifier of the changed row for @rowguid.

  3. Synchronize the subscription to replicate the changed row.