r/SQLServer • u/BruteForceAllTheWay • Oct 16 '25
Solved If a restart my SqlServer server can it free a suspended killed/rollback transaction?
I killed a query that was running for 2 days, then i killed and was in the wait type IO_WAIT for another 2 days, now has almost 1 day on IO_COMPLETION and my log got really big 1.2TB. Should i still wait or should i restart and see if it will finally kill it?
8
Upvotes
22
u/wiseDATAman Oct 16 '25
Wait. If its in rollback a restart will take your db offline until it's completed
27
u/SQLBek 1 Oct 16 '25 •
Username checks...
4
u/temor_Kay Oct 16 '25
Donβt restart, let it work, a rollback is a single thread operation and can take longer than usual to complete.
1
u/FreedToRoam Oct 17 '25
has it finished the rollback yet?
:-)
1
u/duendeacdc Oct 16 '25
Better wait . Restarting when a db is doing a rollback , will make your db offline for days ( i had a 1tb log growth because of a wrong dev running a stupid query , normal log is 50mb ). I restarted the server and the db was offline for 1 day and a half doing the rollback
1
u/ObviousPreference655 Oct 18 '25
Bro.. Graceful shutdown is always requirement.. In these kind of situations before jumping to any technical recommendations, try to find what is causing the issue.. Hard restart should be last option..
I hope you have backups enabled for Point in time recovery if this is a critical database..
1
u/gruesse98604 Oct 18 '25
OMG, this is amazing. Can you give more details about like the size of the db, and what the hardware is?
Honestly, this would be a great story to bring up in an interview since it apparently didn't result in disaster, but must have been insanely stressful!
1
u/NotMyUsualLogin Oct 16 '25
You can always restart. How long the recovery step takes is up in the air though.
Which version of Sql Server? IIRC 2019 brought in the Accelerated Database Recovery database setting that allowed much faster recoveries on a restart.
Unsure if you can set this setting at this juncture though.
So a restart will work, it just depends if itβll take 10 seconds, minutes, or even hours, until that particular database comes back online.