﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by michael vessey  / move all indexes to a secondary file group / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 01:35:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>To do this, you have to create a clustered index on the table and specify the new file group for the index - once you've moved it, you can drop the index if you don't need it. Effectively, you'd use this same script, but you'd remove the filter that causes it to ignore clustered indexes so that it migrates those as well.</description><pubDate>Wed, 02 Jan 2013 09:09:40 GMT</pubDate><dc:creator>Ryan McCauley</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>Hi,Can some one provide links to move tables &amp; indexes to other file group without drop &amp; Recreate them.Just like to move object to other file group without drop and recreate.Thanks</description><pubDate>Wed, 02 Jan 2013 07:26:10 GMT</pubDate><dc:creator>Arju</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>I've fixed the redirection on my blog, so you can view it now. I must have changed the layout at some point and not set up this forwarding page properly.Sorry for the confusion.</description><pubDate>Wed, 28 Sep 2011 16:21:13 GMT</pubDate><dc:creator>Ryan McCauley</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>is this link working ?????????</description><pubDate>Wed, 28 Sep 2011 15:17:28 GMT</pubDate><dc:creator>AK1516</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>I've updated this script to do a few additional things, like- Properly re-create unique indexes- Handle Included columns- Do "online" index moves w/error handling - creates new index, drops old, then renames- Uses existing fill factor if the source index explicitly defines itI've posted the script at my blog - I'm interested if anybody else has feedback or something they'd like to see added.[url=http://www.trycatchfinally.net/post/2010/02/08/Migrate-database-indexes-to-a-new-file-group.aspx]http://www.trycatchfinally.net/post/2010/02/08/Migrate-database-indexes-to-a-new-file-group.aspx[/url]</description><pubDate>Mon, 08 Feb 2010 10:44:30 GMT</pubDate><dc:creator>Ryan McCauley</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>What is the logic behind keeping Non-Clustered with Primary and Clustered with Secondary?</description><pubDate>Mon, 05 Oct 2009 21:21:22 GMT</pubDate><dc:creator>repent_kog_is_near</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>Got an error about foreign key. Any idea?Msg 3723, Level 16, State 6, Line 1An explicit DROP INDEX is not allowed on index 'xxxxxxxxxxxxxx'. It is being used for FOREIGN KEY constraint enforcement.</description><pubDate>Wed, 07 Jan 2009 11:03:02 GMT</pubDate><dc:creator>SQL2005-982522</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>I loved the script. I wish the author or some cold post the reverse process like moving non-clustered indexes from secondary to primary with clustered indexes.</description><pubDate>Fri, 10 Oct 2008 14:59:26 GMT</pubDate><dc:creator>hydbadrose</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>[quote][b]keppro (8/30/2008)[/b][hr]Thanks a lot to the author!One problem with the script: it doesn't recognize indexes with included fields. Does anybody know what system table(s) contain this information? Better yet, is there any kind of API for Management Studio's scripting?[/quote]It is in sys.index_columns, with the included columns marked by a 1 in the is_included column.</description><pubDate>Sun, 31 Aug 2008 09:47:08 GMT</pubDate><dc:creator>timothyawiseman</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>Thanks a lot to the author!One problem with the script: it doesn't recognize indexes with included fields. Does anybody know what system table(s) contain this information? Better yet, is there any kind of API for Management Studio's scripting?</description><pubDate>Sat, 30 Aug 2008 17:15:02 GMT</pubDate><dc:creator>keppro</dc:creator></item><item><title>RE: move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>I really like the script, but it does not maintain the unique portion of indexes which makes it hard to use in some cases.</description><pubDate>Mon, 18 Aug 2008 17:43:59 GMT</pubDate><dc:creator>timothyawiseman</dc:creator></item><item><title>move all indexes to a secondary file group</title><link>http://www.sqlservercentral.com/Forums/Topic404559-741-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Miscellaneous/31541/"&gt;move all indexes to a secondary file group&lt;/A&gt;[/B]</description><pubDate>Sat, 29 Sep 2007 21:25:43 GMT</pubDate><dc:creator>MVDBA</dc:creator></item></channel></rss>