soccerman767
asked on
Adding a clustered index to a 100 million record table
SQL2005 I have a 25 gig ,100 million record table in my database without a clustered index. It has a index on the primary key that I want to change to a clustered index.
Is this something I can do while I am online? Is there any pitfalls you guys can warn me about?
Is this something I can do while I am online? Is there any pitfalls you guys can warn me about?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Table has only one cluster index. So you can create more than one non-cluster indexes.
ASKER
Sarabhai.... Why at this stage should i just stick with a non-clustered?
PatelAlpesh... Yes I know you can only have one clustered indexes. While I am not a DBA I have creted 100s, maybe thousands of indexes.
PatelAlpesh... Yes I know you can only have one clustered indexes. While I am not a DBA I have creted 100s, maybe thousands of indexes.
Because the clustered index is going to physically rearrange the data on disk this is going to take quite some time if your hardware isn't extremely robust.
I would only do this offline.
I would only do this offline.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.