Minimize MS-SQL table deadlocks

There are two SPs perform complicated commands on the same table in our product. Our DBA said he didn't know how to reduce the deadlocks.

After Google the key word 'minimizing deadlocks', I found this official document:
Key-Range Locking

According to above document and this example, if I select data rows by parameter on non-unique index and then perform some operations, I will only lock these rows. Need some tests......

留言

這個網誌中的熱門文章

修改Skype存放對話記錄、檔案的資料夾位置

[C# .Net] 因應資料庫Byte長度,修改中英混雜的字串長度

[C# .Net] 是否需要用 BufferedStream 當做 FileStream 的緩衝?