BEGIN TRANSACTION SELECT * FROM MyTable WITH (UPDLOCK) WHERE Id = 1 -- update here COMMIT
UPDATE Table SET Table.col1 = other_table.col1, Table.col2 = other_table.col2 FROM Table INNER JOIN other_table ON Table.id = other_table.id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)