PRINT_ROLLBACK_PROGRESS Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: LCK_M_X, LCK_M_S, and LCK_M_U Wait TypesRelated pillar: Performance & Troubleshooting

Is It a Problem?

It measures a deliberate action. ROLLBACK IMMEDIATE ends transactions straight away, but rollback itself takes time, and the ALTER DATABASE waits for all of it. Our SQL Server 2025 lab had one wait of exactly 3 seconds, matching the loop below. Get Wait Statistics does not filter it out, so if it ranks, you will see it.


What It Means

Microsoft’s definition: used to wait while user processes are ended in a database that has been transitioned by using the ALTER DATABASE termination clause. The thread that ran ALTER DATABASE ... WITH ROLLBACK IMMEDIATE or ROLLBACK AFTER sleeps in a loop of three-second waits while the killed transactions roll back.


When It Does Matter

When the state change takes far longer than expected. The usual reasons: long-running transactions that take a long time to undo, and a transaction log with very many virtual log files, which slows rollback down; there are also anecdotal reports of the wait while dropping a database snapshot that many connections are using. Before a state change, check what you are about to kill with Get Open Transactions, and track a victim’s rollback with KILL session_id WITH STATUSONLY. Get VLF Counts shows the log structure. The baseline to monitor is how long your planned state changes take.


Where To Go Next

PRINT_ROLLBACK_PROGRESS follows ALTER DATABASE with rollback. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *