I made a mistake when starting up what should have been a quick update against my fact table (lines 200M) as follows:
update dbo.primary_fact set count_of_loan_obligors = on from dbo.staging_fact f -- notice that this is not the same table as the one in the update clause inner join ##Obligor_Count o on (f.time_dimension_id = o.time_dimension_id and f.account_dimension_id = o.account_dimension_id)
Must be:
from dbo.primary_fact f
A properly formed update similar to this one (1 day, 87 thousand accounts) usually ends in a minute or 2. After starting for 12 minutes, I wondered what had been taking so long and noticed my mistake.
I canceled the query in SQL Server Management Studio, which, as I understand it, will drop all the terrible ones that I called (can someone confirm?)
But my big question is: what does a malformed request do?
Update: The cancellation action is completed, an hour and 39 minutes later. Database administrators were too slow to kill - just as good.
Correctly formed update completed in 8 seconds.
Second update: Failed to set values ββfrom the original (erroneous) update after successful cancellation of the order in SSMS. I would interpret this as meaning that any pending updates were thrown back.
source share