﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administration / SQL Server 7,2000  / Update stats process not getting killed / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 10:41:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Update stats process not getting killed</title><link>http://www.sqlservercentral.com/Forums/Topic1252072-5-1.aspx</link><description>For SQL 2008, here is what we do:ALTER DATABASE [XXX] SET AUTO_UPDATE_STATISTICS OFF WITH ROLLBACK IMMEDIATE ALTER DATABASE [XX] SET AUTO_UPDATE_STATISTICS_ASYNC OFF WITH ROLLBACK IMMEDIATE select Q.job_id,Q.database_id,Q.in_progress from sys.dm_exec_background_job_queue Q									where Q.in_progress = 1 AND Q.database_id = 9There is then a function called KILL STATS JOB Y</description><pubDate>Wed, 10 Oct 2012 06:59:37 GMT</pubDate><dc:creator>EdwardLawton</dc:creator></item><item><title>Update stats process not getting killed</title><link>http://www.sqlservercentral.com/Forums/Topic1252072-5-1.aspx</link><description>Windows server 2003SQL Server 2000 enterprise edition. 32 bit.Hi,         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?</description><pubDate>Tue, 14 Feb 2012 11:23:01 GMT</pubDate><dc:creator>savethytrees</dc:creator></item></channel></rss>