GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Database  >  SQL Server
Go To First  |  Previous Question  |  Next Question 
 SQL Server  |  Question 60 of 95    Print  
Explain about Dead-locks in Sql Server database

  
Total Answers and Comments: 2 Last Update: August 07, 2008     Asked by: rbraja.testing 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rup
 
Deadlock is a situation when two processes, each having a lock on one piece of data, attempt to acquire a lock on the other's piece. Each process would wait indefinitely for the other to release the lock, unless one of the user processes is terminated. SQL Server detects deadlocks and terminates one user's process.

Above answer was rated as good by the following members:
neel_desai
January 29, 2007 23:14:15   #1  
rup        

RE: Explain about Dead-locks in Sql Server database
Deadlock is a situation when two processes, each having a lock on one piece of data, attempt to acquire a lock on the other's piece. Each process would wait indefinitely for the other to release the lock, unless one of the user processes is terminated. SQL Server detects deadlocks and terminates one user's process.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 07, 2008 08:39:58   #2  
anjan_maity Member Since: April 2008   Contribution: 6    

RE: Explain about Dead-locks in Sql Server database

Deadlock occurs when two or more processes haveĀ lock objects and each process is trying to acquire a lock on an object that the other processes have previously locked.Ā  Let p1 processĀ  has an exclusive lock on object o1, p2 processĀ  has an exclusive lock on object o2, and p1Ā  also wants an exclusive lock on o2, and o2 wants an exclusive lock on o1. Since two processes can’t have an exclusive lock on the same object at the same time, there causesĀ for deadlock.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Normalization : It is the process of decomposing a relation with anomalies into a well structured relation.Basic Terminology of Normalization:-Well-structured relation : A relation with minimum redundancy and no anomalies Anolamy : is an error during ...
Read Answers (3) | Asked by : Beena

Latest Answer : Normalization is the technique of breaking the complex tables into much understandable smaller one to improve the optimzation of the database structure. The concept of "Fucntional Dependancy" is followed in Second Normal Form (2NF) which means ...
Read Answers (2) | Asked by : Beena

Latest Answer : Create [shared/public] database link connect To identified by using Any problem Don't hesitate write to rahultripathi@myway.com ...
Read Answers (1) | Asked by : Beena

What is the use of database index (apart from fast searching of records);What is use of composite key ?
Read Answers (2) | Asked by : forces

I did not took backup for a database.My colleague had mad some changes to some Stored procedures and I want to roll back to the original codr.Since he did not used the begin transaction i am not able to rollback the changes.>How can I get back to my original code?
Read Answers (1) | Asked by : rajkasa
Tags : Backup

1)What is the maximum value that can be stored for a datetime field? a. Dec 31, 9999 b. Jun 6, 2079 c. Jan 1, 2753 d. Jan 1, 2100 2)What is the correct SQL syntax for returning all the columns from a table named "Persons" sorted REVERSE alphabetically by "FirstName"? a. SELECT * FROM Persons WHERE FirstName ORDER BY FirstName DESC b. SELECT * FROM Persons SORT REVERSE 'FirstName' c. SELECT * FROM Persons ORDER BY -'FirstName' d. SELECT
Read Answers (3) | Asked by : samir khan

Latest Answer : Select Columnname from Tablename Groupby Columnname Having Count*>1 ...
Read Answers (10) | Asked by : Srinu

Latest Answer : I Think the question is not well formed.. Please Elaborate ...
Read Answers (1) | Asked by : Chetan Shewale

Latest Answer : Backup data from MS Sql Server to Access Database following stapes have to do:-1. Create DSN on SQL server (check Sql server Database name,server name,user name,password)2. open MS access database go to importselect ODBC (DSN name) ...
Read Answers (3) | Asked by : pramod
Tags : Backup

Latest Answer : CREATE PROCEDURE [usp_delete_Pataint_master] (@PataintID [int], @BranchID [int] )AS BEGIN SET NOCOUNT ON  BEGIN TRAN    DELETE [dbo].[Pataint_master]  WHERE ([BranchID] = @BranchID ...
Read Answers (3) | Asked by : soumya


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape