|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 10:15 AM
Points: 2,261,
Visits: 758
|
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 12:01 PM
Points: 743,
Visits: 900
|
|
I really like the script, but it does not maintain the unique portion of indexes which makes it hard to use in some cases.
--- Timothy A Wiseman SQL Blog: http://timothyawiseman.wordpress.com/
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 26, 2009 11:16 PM
Points: 1,
Visits: 73
|
|
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?
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 12:01 PM
Points: 743,
Visits: 900
|
|
keppro (8/30/2008) 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?
It is in sys.index_columns, with the included columns marked by a 1 in the is_included column.
--- Timothy A Wiseman SQL Blog: http://timothyawiseman.wordpress.com/
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 1:03 PM
Points: 213,
Visits: 834
|
|
| 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.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 15, 2009 3:36 PM
Points: 1,
Visits: 5
|
|
Got an error about foreign key. Any idea?
Msg 3723, Level 16, State 6, Line 1 An explicit DROP INDEX is not allowed on index 'xxxxxxxxxxxxxx'. It is being used for FOREIGN KEY constraint enforcement.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, August 08, 2011 1:21 PM
Points: 264,
Visits: 331
|
|
| What is the logic behind keeping Non-Clustered with Primary and Clustered with Secondary?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, January 25, 2013 10:27 AM
Points: 181,
Visits: 138
|
|
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 it
I've posted the script at my blog - I'm interested if anybody else has feedback or something they'd like to see added.
http://www.trycatchfinally.net/post/2010/02/08/Migrate-database-indexes-to-a-new-file-group.aspx
Ryan
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, April 22, 2013 8:20 AM
Points: 118,
Visits: 754
|
|
| is this link working ?????????
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, January 25, 2013 10:27 AM
Points: 181,
Visits: 138
|
|
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.
Ryan
|
|
|
|