Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Rebuild Inex taking long time to execute

$
0
0

Hi All,

I have table - MyTable which has 50 millions of records.

I created some stastistics & indices on it. After some testing I dropped them & tried to run following query.

 ALTER INDEX ALL on MyTable REBUILD

To execute this, it was running for 17 hours & finally I stopped executing it.

Any idea, why it is taking long time? Do we have any workaround to run it faster because I have to execute it again? 


-Vaibhav Chaudhari


Viewing all articles
Browse latest Browse all 23857

Trending Articles