﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / rebuilding indexes / 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>Sun, 26 May 2013 03:15:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>After being bitten by the blocking bug in the past where the index rebuild jobs were blocked by a connection from the application that wasn't closed, I implemented a standard practice to include a lock time out in my script that rebuilds the indexes: SET LOCK_TIMEOUT 900000; -- Set it to 15 minutes to avoid causing blockingSo now instead of the index rebuild job being blocked, it just times out after 15 minutes and moves on to the next index.</description><pubDate>Fri, 23 Oct 2009 11:12:06 GMT</pubDate><dc:creator>George M Parker</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>That means that by the time you went to kill it 116 was already finished. How many rows does the table have? When you run the command sp_who2, what is the status of the create index spid? Also please provide the script that you used for recreating index.</description><pubDate>Fri, 23 Oct 2009 07:37:30 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Hi Roy,ERROR: Process ID 116 is not an active process.</description><pubDate>Fri, 23 Oct 2009 07:34:58 GMT</pubDate><dc:creator>Charith12345</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Can you also provide the script that you used to recreate the index?</description><pubDate>Fri, 23 Oct 2009 07:15:19 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>What's the error message? Have you tried through query analyser "KILL 116" and seeing what message you get back?</description><pubDate>Fri, 23 Oct 2009 07:13:21 GMT</pubDate><dc:creator>NickBalaam</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>I see that its blocked by a process 116unable to kill the process from activity monitor, any suggestions?</description><pubDate>Fri, 23 Oct 2009 07:07:00 GMT</pubDate><dc:creator>Charith12345</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>You can run sp_who2. You will the SPIDS that are blocking</description><pubDate>Fri, 23 Oct 2009 06:56:23 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Can you please brief it a little more.</description><pubDate>Fri, 23 Oct 2009 06:46:51 GMT</pubDate><dc:creator>Charith12345</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Yes I am basically using a script ,so it is .</description><pubDate>Fri, 23 Oct 2009 06:43:25 GMT</pubDate><dc:creator>Charith12345</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Check if there are blockings.</description><pubDate>Fri, 23 Oct 2009 06:43:14 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Have the indexes been created with the ONLINE option set to on?</description><pubDate>Fri, 23 Oct 2009 06:39:47 GMT</pubDate><dc:creator>NickBalaam</dc:creator></item><item><title>rebuilding indexes</title><link>http://www.sqlservercentral.com/Forums/Topic807805-146-1.aspx</link><description>Hi I am trying to rebuild indexes on a database and its taking forever .I am unable to debugthe issue. Before 2 months it usually takes around 47 min by my past 2 attempts are failure.Last time it took more than a day so I got to abort the job an at  yesterday I initaited the job at 11.00pm an I see its still running. can you please let me know how to solve this problem???????I would appreciate your response...........I am in a bit of crises..........Performance is bad.</description><pubDate>Fri, 23 Oct 2009 06:36:45 GMT</pubDate><dc:creator>Charith12345</dc:creator></item></channel></rss>