The following link describes the serializable transaction isolation level.
Suppose I have one user updating table [dbo].[Table_A]
. And another user is updating table [dbo].[Table_B]
. And I want to serialize these two update statements (meaning wait for the first to finish before the second one begins), despite the fact that we are touching different tables. I'm guessing I cannot use a table lock, but perhaps a range lock would accomplish this. Can someone help me understand what the code may look like? Or won't this work with transaction isolation level functionality in SQL Server 2008?