Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is deadlock and how to avoid the deadlocks.

Answer Posted / dba

P1 has lock on R1
P2 has lock on R2
P1 requests lock on R2
P2 Requests lock on R1

Where P & R are corresponding processes and resources.

Deadlock consists of two processes requesting locks on
resources thus, blocking each other.

You can avoid Deadlocks:
Access objects in the same order
Use lower isolation levels
Keep Transactions short and in one batch
Avoid user interactions in transaction
Use bound connections

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to disable triggers using "disable trigger"?

1101


what is the different types of backups available in sql server? : Sql server database administration

967


What are the different types of join?

1237


What is mscorsvw.exe - process - microsoft .net framework ngen?

998


Name few of the dcl commands in sql?

1053


Define a cross join?

1081


How do you send email on SQL Server?

1110


How you can change a cross join into an inner join?

1020


How to retrieve field values using mssql_result()?

1408


How many types of cursor type are there?

1162


What are types of subqueries?

1129


What will be query used to get the list of triggers in a database?

1053


What new changes are being made in SQL Server?

1257


What is named calculation? : sql server analysis services, ssas

1019


What is t-sql script to take database offline – take database online.

1129