June 2, 2014 at 11:33 am
I executed the following command:
DBCC DBREINDEX ('RDB_Bill.BILL_FACT', ' ', 70);
The query was taking for ever so I cancelled it after 35 minutes
I only has 1,289,573 records.
I'm blocking two users who were performing SELECT Statements.
The elapsed time is 47 minutes.
How long will it take to cancel? At least 35 minutes or more?
Thank you.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 2, 2014 at 11:44 am
What version are you using ?
If >= 2005 then use alter index ... with (online = on)
As for your question, yes it may take around 35 min to undo.
June 2, 2014 at 11:50 am
Or Drop and recreate.
Thanks.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 2, 2014 at 1:50 pm
REBUILD has to rollback when cancelled.
REORGANIZE does not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply