Link to home
Start Free TrialLog in
Avatar of ukerandi
ukerandiFlag for United Kingdom of Great Britain and Northern Ireland

asked on

sql server

how to handled deadlock in sql server? any sql example is great
SOLUTION
Avatar of Vikas Garg
Vikas Garg
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ukerandi

ASKER

ok  i will
You will what?
With SSMS
1. execute sp_who2
2. BlkBy column will show the bloker. Deadlock = two SPIDs block each other.
3. Choose the SPID of the victim and: KILL SPID
Deadlocks are severe problem causing instance since all the processes or the transactions can be troubled, if it occurs..for more read this article https://atdhebuja.wordpress.com/2015/08/25/difference-between-deadlock-and-blocking-in-sql-server/