Merge replication supports the replication of text and image columns only if they have explicitly been updated by an UPDATE statement. Using the WRITETEXT and UPDATETEXT operations alone will not propagate the change to other sites. If your application uses WRITETEXT and UPDATETEXT to update the text columns, then explicitly add a dummy “UPDATE statement” after the text operations, within the same transaction, to guarantee that the change will be propagated to other sites.
For example, updating the review column of the employees table:
BEGIN TRAN
DECLARE @mytextptr varbinary(16)
SELECT @mytextptr = TEXTPTR(review) FROM employees WHERE emp_id = '444-
55-6666'
IF @mytextptr IS NOT NULL
UPDATETEXT employees.review @mytextptr 0 NULL 'Terrific job
this review period ....'
-- Dummy update to ensure that the text gets propagated to other
Subscribers
UPDATE employees SET review = review WHERE emp_id = '444-55-6666'
COMMIT TRAN
uniqueidentifier |