Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 transaction locks predetermined?

Author  Topic 

influent
Constraint Violating Yak Guru

367 Posts

Posted - 2007-03-14 : 18:15:14
If I have a long transaction set to SERIALIZABLE and it inserts and updates several different tables, does SQL Server place a lock on all of the appropriate tables before the transaction starts?

LoztInSpace
Aged Yak Warrior

940 Posts

Posted - 2007-03-17 : 21:43:44
I would imagine this is a complex question not easily answered because how a lock is used or applied depends on lots of things (mainly what data is changed though and what your database version/settings are).

I don't think locks are determined by the execution plan though - I would say they are determined by the data and the database/transaction/session settings.
Go to Top of Page
   

- Advertisement -