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?
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.