asp.net和sql server 2008的隔离级别策略

时间:2013-04-01 13:10:38

标签: sql sql-server-2008 ado.net

什么应该是理想的asp.net和sql server 2008的隔离级别策略。我们使用read-commited但它仍然挂起,见下文。

  • 表名 - Customers
  • 隔离级别 - Read Committed

交易1:

set transaction isolation level read committed
Begin Tran

UPDATE Customers
SET ordercount = 50 
WHERE id = 2

WAITFOR DELAY '000:00:20'
rollback tran

交易2:

set transaction isolation level read committed
Begin Tran

Select * From Customers 

Trans commited

交易2挂起20秒!!如何处理这种情况?

此致

CHANDAN

0 个答案:

没有答案