Dead lock issue
It seems to be the second index is creating deadlock here. You need to look at the second index (NC) to add emp ID with Dept ID so that it locks on exact row rather all same deptID, which is 10 in your...
View ArticleDead lock issue
· The usage of the UPDLOCK for the table will hold the lock until commiting the transaction.Begin TransactionUpdate EMP WITH (UPDLOCK)Set Sal=Sal*.25,@inDeptid =deptid where empid=@inempidIf...
View ArticleDead lock issue
The usage of the UPDLOCK for the table will hold the lock until commiting the transaction.BegingTransactionUpdate EMP WITH (UPDLOCK)Set Sal=Sal*.25,@inDeptid =deptid where empid=@inempidIf...
View ArticleDead lock issue
HiThe following Stored Proc will Update the given EMP sal & Print the DeptId of the employee if Minimum salary exceeds 10000 in the Given employees Department.The below SP can be executed...
View Article
More Pages to Explore .....