Category: Wait Types
-
PAGEIOLATCH_SH Wait Type in SQL Server
PAGEIOLATCH_SH appears when a query needs a data page that is not in the buffer pool, so SQL Server must read it from disk. SH is the shared latch mode, which Microsoft describes as the one used while the page is being read from disk. The query waits until the I/O completes and the page…
Written by
-
ASYNC_NETWORK_IO Wait Type in SQL Server
ASYNC_NETWORK_IO appears when SQL Server has finished producing rows and is waiting for the client application to read them from the network buffer. SQL Server filled its output buffer, the client hasn’t acknowledged it yet, and SQL Server is sitting idle waiting to send the next batch. This wait type is almost always an application-layer…
Written by
-
PAGELATCH_EX Wait Type in SQL Server
PAGELATCH_EX (and its sibling PAGELATCH_UP) is a latch wait on a page that is already in memory. That one word, memory, is the whole story. This is not disk I/O. If you see PAGE**IO**LATCH you have a storage problem; if you see PAGELATCH you have a concurrency problem: too many threads trying to change the…
Written by
-
AM_INDBUILD_ALLOCATION and AM_SCHEMAMGR_UNSHARED_CACHE Wait Types in SQL Server
Two Access Methods waits share this page. Both are documented as internal use only, from SQL Server 2012: AM_INDBUILD_ALLOCATION: waiting for exclusive access to an extent during allocations while building or rebuilding indexes. AM_SCHEMAMGR_UNSHARED_CACHE: waiting for a cache of column attributes, which cannot be shared between partitions, to be initialised. Are They a Problem? No.…
Written by
-
WAITFOR Wait Type in SQL Server
WAITFOR waits are sessions running WAITFOR DELAY or TIME statements. User-initiated by definition; big totals mean code is sleeping on purpose.
Written by
-
BACKUP Wait Type in SQL Server
BACKUP waits are backup threads synchronizing with each other during backup processing. Expected during backups; watch durations instead.
Written by
-
BACKUPTHREAD Wait Type in SQL Server
BACKUPTHREAD waits are backup workers waiting for other threads during backup or restore. Long waits are normal; check backup duration.
Written by
-
BAD_PAGE_PROCESS Wait Type in SQL Server
⚡BAD_PAGE_PROCESS is the background logger that records suspect pages, pacing itself after 823 and 824 errors. Its count matters more than its time: each wait goes with a corruption error. Run the check on msdb.dbo.suspect_pages and the error log before anything else. Microsoft’s definition: it occurs when the background suspect page logger is trying to…
Written by
-
BROKER_TASK_STOP Wait Type in SQL Server
BROKER_TASK_STOP waits are Service Broker task handlers waiting up to ten seconds to shut down when no Broker work exists. Benign timer.
Written by
-
BROKER_TO_FLUSH Wait Type in SQL Server
BROKER_TO_FLUSH waits are the Service Broker lazy flusher idling, ticking one second per second even when Broker is unused. Filter it out.
Written by
- Tune a Slow Query With Copilot in SSMS
- xp_readerrorlog: Read the SQL Server Error Log with T-SQL
- Cannot Drop Database Because It Is Currently in Use (Error 3702)
- Could Not Drop Login Because the User Is Currently Logged In (Error 15434)
- Set a Maximum Database File Size in SQL Server (MAXSIZE)
- SQL Server Activity Monitor in SSMS (and the Performance Dashboard)
- Backups & Recovery (18)
- DBA Scripts (154)
- High Availability (HA) (13)
- Installation & Configuration (60)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (10)
- Performance Tuning (38)
- Security (Encryption & Permissions) (25)
- Storage & Capacity (18)
- T-SQL Fundamentals (17)
- Troubleshooting (108)
- Wait Types (236)