ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What is deadlock and how to avoid the deadlocks.
 Question Submitted By :: Bhaskar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is deadlock and how to avoid the deadlocks.
Answer
# 1
A deadlock occurs when there is a cyclic dependency between 
two or more threads for some set of resources.
 
Is This Answer Correct ?    1 Yes 0 No
Moin
 
  Re: What is deadlock and how to avoid the deadlocks.
Answer
# 2
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 ?    1 Yes 0 No
Raghu
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is WITH CHECK OPTION Karur-Vysya-Bank-KVB2
How do you use DBCC statements to monitor various aspects of a SQL server installation?  1
how can do you the system monitoring?  1
What are the different ways of moving data/databases between servers and databases in SQL Server?  1
how to find number of columns in a table in sql server 2000 and 2005 also Virtusa6
Difference between Cluster and Non-cluster index? Oracle6
How to retrieve duplicate rows in a table? How to delete the duplicate entries in a table? Leo-Technologies9
What is a view? is View updatable? IBM10
Wht is SQL Injection Attack ?  1
What is the difference between two queries: 1. SELECT * FROM table WHERE 1=1; 2. SELECT * FROM table HP12
How do you find the error, how can you know the number of rows effected by last SQL statement?  2
what is Data Transformation Services (DTS) ?can u explain me in detail? TCS4
What is ACID Property of Transaction?  3
What are functions  3
Difference between Triggers and Stored Procedure Protech7
What is a cursor in SQL Server 2000 and their types?  2
Assume,there are three tables in a database, Can i have both primary key and foreign key for each table in the same database?  4
How to link up the text file to a Database table? Allianz1
Which data type can be used only on OUTPUT parameters of the stored proceduer?  2
What is the differecne between equi-join and inner-join and natural join..Is there any difference or all are same? Microsoft2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com