解决方案 »

  1.   

    A single SELECT query can block itself in SQL Server! If the query engine decides to use intra-query parallelism it is possible for the separate threads that it spawns to deadlock each other. Please check http://support.microsoft.com/?kbid=837983. There are many solutions for this issue. The best way is to modify your SQL query, but it is hard to modify your code with "NOLOCK or SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED". On my side, the easiest way is to disable the "parallelism" functionality of SQL instance.
      

  2.   

    看看这个107执行了什么语句
    dbcc inputbuffer(107)
      

  3.   

    执行的是一个存储过程,里面包含一个事务Stat_.dbo.SpChangeStatViewOnClick;1