So we have a customer site that is complaining about some seriously slow performance. I took one look and it's obvious that the problem is because Somebody Else (grrrr) designed a table holding some 20 million-plus records without a clustered index.
Now I want to create a clustered index on that table - but in my test environment my create index
command has been running for an hour and it's still not done. The customer site is a shop floor that works 24/7, and cannot afford an hour of down time while I create an index.
Is there some less brute-force method of creating the index that will either finish the job quickly, or do it in some smart way that will not totally kill the server's performance while it's busy?
We are using SQL Server Enterprise Edition.