Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
SQL Server GroupsView
SQL Server Ce
SQL Server Clients
SQL Server Connect
SQL Server Datamining
SQL Server Datawarehouse
SQL Server Dts
SQL Server Fulltext
SQL Server Msde
SQL Server Olap
SQL Server Replication
SQL Server Reportingsvcs
SQL Server Security
SQL Server Server
SQL Server Setup
SQL Server Tools
SQL Server Clustering
SQL Server Programming
SQL Server Xml
SQL Server Newusers
SQL Server Integrationsvcs

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft SQL Server Programming Posts  Ask A New Question 

Tracking blocking

LeonShargorodsk posted on Thursday, September 06, 2007 11:06 AM

What is the best way to track blocked/blocking processes in SQL 2005?
I do not want to use Profiler because it needs to be running all the time.
Thank you in advance for your help,

Leon
reply

 

I use a modified version of sp_who which excludes all sleeping tasks,so i can

Dave Ballantyne posted on Thursday, September 06, 2007 11:18 AM

I use a modified version of sp_who which excludes all sleeping tasks,
so i can easily see which tasks are blocked / blocking.

Then you have to be quick to dbcc inputbuffer and sp_lock to find out
which procedures/sql and tables are blocking.

Dave
reply

You might want to check out event notifications.

Tibor Karaszi posted on Thursday, September 06, 2007 11:23 AM

You might want to check out event notifications. You should be able to have a notification on the
blocked process report event.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
reply

Leon Shargorodsky,How to monitor blocking in SQL Server 2005 and in SQL Server

AlejandroMes posted on Thursday, September 06, 2007 11:32 AM

Leon Shargorodsky,

How to monitor blocking in SQL Server 2005 and in SQL Server 2000
http://support.microsoft.com/kb/271509

Transactions and Locking
http://www.microsoft.com/technet/scriptcenter/scripts/sql/sql2005/trans/default.mspx?mfr=true

aba_lockinfo
http://www.sommarskog.se/sqlutil/aba_lockinfo.html


AMB
reply


Previous Microsoft SQL Server Programming conversation.