Windows server 2003
SQL Server 2000 enterprise edition. 32 bit.
I have set up a maintenance plan to update stats. Unfortunately I picked 100% sampling to update the stats. Last weekend, the job to run the maintenance plan got kicked off and I started to get blocking issues because of this. The update stats command was blocking other queries.
So I first stopped the job but the SPID that was running update stats kept running. I tried to kill the SPID and it kept on running. I verified that it was in a roll back state. But as soon as it rolled back update stats on one table, it started to update stats on the next table.
So in spite of stopping the job and killing SPID several times the process to update stats kept running and finally after 35 hrs it finished with an error.
I could have restarted the instance to get rid of it but didn't want to take a risk as it was no longer causing blocking.
Has anyone else seen this behaviour or knows how to kill a SPID?