Are you running on a virtual machine? My first guess would be yes. I would suggest you look at the host usage, not the VM instance usage. It is likely something else on the host is interfering with the SQL VM.
Non-clustered index taking time on cetain days
ACDBA
416
Reputation points
I have a non-clustered index created every day on a partitioned table of 90million records..Usually, it takes 5 min to complete. but on some days it takes 3 to 4 hours. No other activity is running on the server at that time and nothing is blocking this creation. I can see a spike in CPU\Memory usage during this window.
Can you advise what to check? data volume is almost the same.