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 the difference between data mart and data warehouse? : sql server analysis services, ssas

498


What are the instances when triggers are appropriate?

520


How to attach adventureworkslt physical files to the server?

629


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

1628


Explain optimistic and pessimistic concurrency?

539






What is the purpose of data source?

511


What are the properties of primary key?

510


What are the diifferences between the ms sql server vs mysql?

651


What is the difference between a "where" clause and a "having" clause?

611


What is resource governor?

542


What do you mean by an execution plan? How would you view it?

491


What are constraints?

583


Explain how to send email from sql database?

558


What do you understand by SQL*Net?

613


What is the difference between char and varchar2 datatype in sql?

539