Link to home
Start Free TrialLog in
Avatar of soccerman767
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?  
ASKER CERTIFIED SOLUTION
Avatar of Sara bhai
Sara bhai
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Table has only one cluster index. So you can create more than one non-cluster indexes.
Avatar of soccerman767
soccerman767

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.
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial