Moving all non-clustered indexes to another filegroup in SQL Server

后端 未结 3 1911
醉梦人生
醉梦人生 2021-01-31 20:35

In SQL Server 2008, I want to move ALL non-clustered indexes in a DB to a secondary filegroup. What\'s the easiest way to do this?

3条回答
  •  暖寄归人
    2021-01-31 21:08

    Script them, change the ON clause, drop them, re-run the new script. There is no alternative really.

    Luckily, there are scripts on the Interwebs such as this one that will deal with scripting for you.

提交回复
热议问题