October 1, 2012 at 11:45 am
Hi,
Can anyone of you please guide me how to move indexes (Primary filegroup) to new Index filegroup.
I have done for one table manually.
1. drop constraints
2. adding index to new filegroup using alter statement
3. Enable constraint.
Since this is very big database,so some other process I have learn to do this task. Is there any way to reindexes using alter statement for all tables. Please suggest me.
Thanks, Kumar
October 1, 2012 at 1:07 pm
Are you trying to move all your indexes to another filegroup? What about clustered indexes? Move those too?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
October 2, 2012 at 3:22 am
May below links helps you:
October 2, 2012 at 11:49 am
Hi, I got requirement to move all indexes from primary to new filegroups.
Is there any challange will face while moving cluster index to new filegroups.
October 3, 2012 at 7:51 am
Challenges will mainly depend on the amount of data and what you can allow for downtime, or if you can do an online rebuild.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
October 5, 2012 at 4:07 pm
One thing I saw on MSDN and worth noting:
"Because the leaf level of a clustered index and the data pages are the same by definition, creating a clustered index and using the ON partition_scheme_name or ON filegroup_name clause effectively moves a table from the filegroup on which the table was created to the new partition scheme or filegroup. Before creating tables or indexes on specific filegroups, verify which filegroups are available and that they have enough empty space for the index. "
http://msdn.microsoft.com/en-us/library/ms188783.aspx
---
----------------------------------------------------
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply