Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pessimistic/ Optimistic concurrency control mechanisms

Status
Not open for further replies.

calico

Programmer
Jan 6, 2001
26
CA
Hi,

How can I know the type of concurrency control that have been set on our Sql Server ?
Pessimistic or Optimiistic ?

I read that MS Sql Server supports a wide range of Pessimistic and Optimistic concurrency control mechanisms. Can you enumerate that are they ?

Thank you !

Danny Danny Presse
 
Acutally, the transaction isolation level defines the degree of pessistic behavior that SQL Server imposes on locking behavior.

The default isolation level is READ COMMITTED, where locks (Shared & Exclusive) are honored, but things like phantom reads and non-repeatable reads can occur with this level.

As you increase the isolation level, these weird read problems go away, but locks are held longer. Check out books-online for more info...

Tom Davis
tdavis@sark.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top