code_junkie

SQL Server 2005 deadlock on key

Nov 12th, 2011
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. begin transaction
  2. read from table 1
  3. insert into table 2
  4. update table 1 with pointer to table 2 record
  5. commit transaction
Add Comment
Please, Sign In to add comment