About Dead Lock
Hi iam new to DBA.
I want to know the where does the deadlock victim will receive the message about the lock in sql server
Please let me know..
Regards
Koteswar Rao.Y
Web Development
Hi iam new to DBA.
I want to know the where does the deadlock victim will receive the message about the lock in sql server
Please let me know..
Regards
Koteswar Rao.Y
by y.koteswarrao Accepted solution
by older mycroft Accepted solution
Deadlocking occurs when two user processes have locks on separate objects and each process is trying to acquire a lock on the object that the other process has. When this happens, SQL Server identifies the problem and ends the deadlock by automatically choosing one process and aborting the other process, allowing the other process to continue. The aborted transaction is rolled back and an error message is sent to the user of the aborted process. Generally, the transaction that requires the least amount of overhead to rollback is the transaction that is aborted.
Most well-designed applications, after receiving a deadlock message, will resubmit the aborted transaction, which most likely can now run successfully. This process, if it happens often on your server, can drag down performance. If the application has not been written to trap deadlock errors and to automatically resubmit the aborted transaction, users may very well become confused as to what is happening when they receive deadlock error messages on their computer.
Check details here:
http://www.mssqltips.com/tip.asp?tip=1036
by peconet tietokoneet Accepted solution
A deadlock is a situation wherein two or more competing actions are waiting for the other to finish, and thus neither ever does. It is often seen in a paradox like "the chicken or the egg".
In computer science, deadlock refers to a specific condition when two or more processes are each waiting for each other to release a resource, or more than two processes are waiting for resources in a circular chain. Deadlock is a common problem in multiprocessing where many processes share a specific type of mutually exclusive resource known as a software, or soft, lock. Computers intended for the time-sharing and/or real-time markets are often equipped with a hardware lock (or hard lock) which guarantees exclusive access to processes, forcing serialization. Deadlocks are particularly troubling because there is no general solution to avoid (soft) deadlocks.
This situation may be likened to two people who are drawing diagrams, with only one pencil and one ruler between them. If one person takes the pencil and the other takes the ruler, a deadlock occurs when the person with the pencil needs the ruler and the person with the ruler needs the pencil to finish his work with the ruler. Both requests can't be satisfied, so a deadlock occurs. :)
by tony hopkinson Accepted solution
The server kills the process, the client connection times out with no response which throws up and exception in the requesting program.
Bloody irrittaing message anyway, without information about the lock and the other process(es) involved it's near useless.
This discussion is closed to new replies.
Sort by Trending