What is deadlock and how to avoid the deadlocks.

Answer Posted / raghu

Consider there are transcations going on 1 row, some one is
trying to update a column in that row while others are
trying to retrive data of same row,while update locks the
row for some period of time others cannot select it, hence
deadlock occurs.

To kill the process is solution. In sql server 2005 use sql
profiler to view the process, in that see the column named
transactions if its value is more than 1 right click and
kill the process.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are clustered and non-clustered index?

712


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

755


How to define and use table alias names in ms sql server?

740


what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

721


Explain the microsoft sql server delete command? : SQL Server Architecture

776






How to change the ownership of a schema in ms sql server?

740


How to view the error log for any specific instance? : sql server database administration

767


Explain can SSRS reports Cache results?

136


Tell me the difference between clustered and non-clustered index?

680


What is an inner join?

706


what is raid? : Sql server database administration

717


Can the “if update (colname)” statement be used in a delete trigger?

746


Explain the rules for designing files and file groups in sql server?

706


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

691


what are user defined datatypes? : Sql server database administration

713