Technical Article

Show Blocking and Wait time

When executed against a database in which blocking occur, below script will report lockType, Object waited for and current Wait times. The script requires access to master..systables. The script queries syslockInfo (as does sp_lock), but further joins sysprocesses with an interpretation of waitresource matching SQL Server 7.0 and SQL Server 2000.

2002-01-14

2,538 reads

Blogs

Daily Coping 26 Jan 2023

By

Today’s coping tip is to focus on what’s good, even if today feels tough....

Using SQL Data Compare from the Command Line with a Project

By

SQL Data Compare (SDC) is a great way to sync data among tables. It’s...

Daily Coping 25 Jan 2023

By

Today’s coping tip is to be gentle with yourself when you make mistakes. I...

Read the latest Blogs

Forums

Can't Add Delegation for MSSQLSvc to IIS for AG Listener

By skreebydba

I have a two-replica SQL Server Availability Group running on Windows VMs in the...

Read # of trace files

By Chitown

I have a SQL agent job which starts the trace (for audit purpose) everyday...

cannot grant user view definition on a database

By winston Smith

I have a number of databases on a sql server 2017 instance. For most...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers