2013-05-16 31 views

回答

1

当你打开一个连接只执行

SET DEADLOCK_PRIORITY... 

例如:

dim cn as new SqlConnection(cstring) 
Dim cmd as SQlCommand=cn.CreateConnection 
cmd.CommandText="SET DEADLOCK_PRIORITY NORMAL" 
cn.Open 
cmd.Execute 

设置的内容仍然有效,直到连接被关闭。

无法设置DEADLOCK_PRIORITY - 请参阅All SQL Server SqlConnection propertiesSetting a deadlock victim

相关问题