I have a large table without any indexes on it, about 27.5m rows.
I tried to delete about half of those using using BEGIN TRAN
.
I then tried canceling the querie, but because it was taking long I decided to just close the Management Studio.
Now when I try to look into that table, it does not return anything, just keeps running.
When I run SELECT TOP 10 * FROM Tbl
it just executes without returning anything.
But when I run SELECT TOP 10 * FROM Tbl(NOLOCK)
it return 10 rows.
This tells me that it is waiting on a Rollback/Commit
from my BEGIN TRAN
.
I thought it would rollback automatically after closing the session and Management Studio.
How do I fix this issue?
Thanks.