How can your resolve deadlocks?

Answer Posted / xavier rajan, photon infotech

A deadlock occurs when two or more
processes try to access a resource that another process has
a lock on. Microsoft SQL Server automatically
detects these deadlocks, terminates one of the processes,
and rolls back any changes made by that process.
The process chosen for termination will be the one with the
least amount of active time on the server. In
most cases, you can simply reissue the statements that were
rolled back and should have no problems.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a partition key?

523


How to store and query spatial data?

564


Do you know what is a trace frag? Where do we use it?

560


What is sql server profiler trace data file?

589


What is subquery in sql?

573






Name few endpoints exposed by ssrs 2012?

305


What does sql server mean?

538


What are drilldown reports?

86


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

532


How many columns can exist together per table?

709


You are doing log shipping due to some reasons it is failing. How you will proceed from there

1549


What is a fan-out query in SQL Azure?

99


What are the different types of sub-queries?

600


What are “lost updates”?

617


how to overcome kernel isssues

1174