SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 How to find deadlocks in sql server 2005 express
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

balaram19
Starting Member

India
9 Posts

Posted - 01/19/2012 :  02:21:34  Show Profile  Reply with Quote
Hi,
Iam new to sql server.I have to find where deadlocks will occur in storedprocedures. Pls tell me how to find deadlocks in sql server 2005 express & how to resolve those.


balaram,
7702459089

ivbalaram

Edited by - balaram19 on 01/19/2012 02:29:37

senthil_nagore
Flowing Fount of Yak Knowledge

India
1007 Posts

Posted - 01/19/2012 :  02:32:55  Show Profile  Visit senthil_nagore's Homepage  Send senthil_nagore a Yahoo! Message  Reply with Quote
Enable the trace flag 1204 and check in error log.

Senthil Kumar C
------------------------------------------------------
MCITP - Database Administration SQL SERVER 2008
MCTS - Database Development SQL SERVER 2008
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 01/19/2012 :  03:21:50  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
Don't use traceflag 1204, that's an old one from SQL 2000 days and has limited information.

Switch traceflag 1222 on. That will result in a detailed deadlock graph been written to the error log every time a deadlock occurs. Post the result of that graph here.

DBCC TRACEON(1222,-1)


--
Gail Shaw
SQL Server MVP
Go to Top of Page

balaram19
Starting Member

India
9 Posts

Posted - 01/20/2012 :  02:37:19  Show Profile  Reply with Quote
Thanx to you both


ivbalaram

Edited by - balaram19 on 01/20/2012 02:38:13
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000