Is the following statement an atomic operation?
UPDATE [table1]
SET column1=@val1, column2.WRITE(@val2, NULL, 0) WHERE table1_id=@id
or should it be placed inside a transaction to ensure that none or both columns are updated in case of error situations?
Columns are defined as:
column1 int not null,
column2 varbinary(max) not null