SET TRANSACTION ISOLATION LEVEL REPEATABLE READBEGIN TRANDECLARE @mytextptr varbinary(16)SELECT @mytextptr = textptr(Notes)FROM Employees WHERE EmployeeID = '7'IF @mytextptr IS NOT NULL BEGINUPDATETEXT Employees.Notes @mytextptr 0 NULL 'Terrific job this review period.'-- Dummy update to fire trigger that will update metadata and ensure the update gets propagated to other Subscribers.UPDATE Employees -- Set value equal to itself.SET Notes = NotesWHERE EmployeeID = '7' ENDCOMMIT TRAN SET TRANSACT
↧