Category: Wait Types
-
ASYNC_DISKPOOL_LOCK Wait Type in SQL Server
ASYNC_DISKPOOL_LOCK waits are threads coordinating long file operations like creating, zeroing, or encrypting files. Watch it during TDE scans.
Written by
-
PAGEIOLATCH_EX Wait Type in SQL Server
PAGEIOLATCH_EX means a session is waiting for a data page to be read from disk into memory so that it can change it. It is a read wait that belongs to UPDATE, DELETE, INSERT and MERGE statements, not SQL Server writing dirty pages out. When it climbs, your write statements are touching data that is…
Written by
-
LCK_M_X, LCK_M_S, and LCK_M_U Wait Types in SQL Server
⚡An LCK_M_* wait is a session stuck behind a lock another session holds, and one open transaction is usually behind the whole pile-up. Find the head of the blocking chain before you kill anything: Step 1 shows how. The suffix names the lock the waiting session asked for. LCK_M_X is exclusive, taken to write a…
Written by
-
IO_COMPLETION Wait Type in SQL Server
IO_COMPLETION covers I/O waits that happen outside the normal buffer pool page path. Where PAGEIOLATCH_SH and PAGEIOLATCH_EX track data page reads and writes through the buffer pool, IO_COMPLETION covers most of the I/O that is not a data page: sort spills to tempdb, reads of the transaction log during rollback and recovery, pages read from…
Written by
-
HADR_SYNC_COMMIT Wait Type in SQL Server
HADR_SYNC_COMMIT appears exclusively on Always On Availability Group primary replicas configured with at least one synchronous commit secondary. With synchronous commit, the primary cannot acknowledge a transaction commit to the application until the log records for that transaction have been written and hardened on all synchronous secondaries. HADR_SYNC_COMMIT is the time spent waiting for that…
Written by
-
CXPACKET and CXCONSUMER Wait Types in SQL Server
CXPACKET and CXCONSUMER appear whenever SQL Server runs a query in parallel. They are coordination overhead between worker threads, not waits on a resource. CXPACKET: a producer thread waiting for a consumer to take rows, or the coordinator waiting for all workers to finish. CXCONSUMER: a consumer thread waiting for rows from a producer. Before…
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)