Code Library
Home Submit Free Hosting Link To Us Contacts

SQL Update in serializable mode with index

SQL Update in serializable mode with index SQL SQL Update in serializable mode with index Download (.zip)



USE PUBS
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
BEGIN TRAN
UPDATE authors
SET contract = 0
WHERE au_lname = 'Ringer'
EXEC sp_lock2 @@spid
COMMIT TRAN






Tatet