简体   繁体   中英

Two SQL non-clustered index creation

I've got a fairly large table that I'm trying to add two non-clustered indexes to at the same time and it is taking a very long time to go through.

Both are set with ONLINE=ON so that the table data could still be updated and more rows added to it.

Two quick questions:

-I'm wondering if updating data in such a large table is causing the index to never fully be created?

-Now that I've stopped the table from being updated, should both indexes now be created or could they be interfering with each other? (ie. should I cancel one of them?)

TIA

FYI, neither of them finished. I cancelled one and still the other didn't finish. ONLINE did not work at all, I had to revert to ONLINE=OFF and the indexes created fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM