I want to drop a SQL Server 2008 database, but it is currently performing a rollback for a transaction (that transaction took 3 days to run so far).
How do I stop the rollback because I want to drop the database?
Thank you.
I want to drop a SQL Server 2008 database, but it is currently performing a rollback for a transaction (that transaction took 3 days to run so far).
How do I stop the rollback because I want to drop the database?
Thank you.
Here's how I stopped the rollback and dropped the database.
Rollbacks will generally take as long to roll back as they took to run.
If you are only dropping the database you restart the engine which would allow you to then drop the database, as this would kill the rollback process. Obviously make sure you have downtime ;)
In short you can't. You have to wait for the transaction to rollback before the locks are released.
I suppose you could stop the SQL service and delete the database files. Then when the instance comes back online delete the suspect database. But this requires an outage and that you are very sure you are deleting the correct files.