Solved

SQL Server 2008 Deadlock

Posted on 2014-01-15
5
768 Views
Last Modified: 2014-01-19
How to identify dead lock in SQL 2008 ? How do I know whether a dead lock occur in production environment ? Will the SQL server slow down the performance ?
0
Comment
Question by:AXISHK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 13

Assisted Solution

by:Koen Van Wielink
Koen Van Wielink earned 200 total points
ID: 39784639
Try running the SP_WHO and SP_WHO2 stored procedures. They will show you blocked and blocked by columns that correspond with a session ID. Look up the session ID to see who is locking the database.
0
 
LVL 1

Expert Comment

by:mike706
ID: 39784704
You can also use the activity monitor to see this information.

You can find more information about deadlocks here http://technet.microsoft.com/en-us/library/ms177433%28v=sql.105%29.aspx

Deadlocks are a performance problem because they can prevent 2 or more processes from being able to process data.  A deadlock chain can occur and impact hundreds of spids based on the data access patterns, number of users, object dependencies, etc.
0
 

Author Comment

by:AXISHK
ID: 39791879
Run 'sp_who" and 'sp_who2' but I can't find the 'blocked" or 'blocked  by" column.  Do I make something wrong ?

Tks
0
 
LVL 1

Accepted Solution

by:
mike706 earned 300 total points
ID: 39792001
It should look something like this.
sp_who2
sp-who2.jpg
0
 

Author Closing Comment

by:AXISHK
ID: 39793194
Tks
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question