多線程處理sql server2008出現Transaction (Process ID) was deadlocked on lock resources with another process and has been chose問題


多線程處理sql server2008某個表中的數據時,在Update記錄的時候出現了【Transaction (Process ID 146) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction】顯示的錯誤是因為處理的表沒有設置主鍵,而更新時是根據主鍵進行更新的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM