Поделиться через


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

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.

См. также

Другие ресурсы

Общие вопросы репликации слиянием

Справка и поддержка

Получение помощи по SQL Server 2005