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

How to list all field names in the result set using mssql_field_name()?

614


What is the use of sql profiler in sql server 2012?

584


Does the unique constraint create an index?

659


Can I delete event logs?

618


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

604






How to rename databases in ms sql server?

709


What is buffer cash in sql server?

720


Explain logical operators in sql server?

664


What will be the maximum number of index per table?

649


What is field with example?

591


Differentiate between SQL and ORACLE joins and write their syntax.

676


How do I create a stored procedure in dbml?

605


Is sql different from sql server?

606


What are the events recorded in a transaction log?

609


What is openxml in sql server?

757