all groups > sql server (alternate) > march 2007 >
You're in the

sql server (alternate)

group:

Scripted CREATE INDEX



Scripted CREATE INDEX rcamarda
3/12/2007 11:55:32 AM
sql server (alternate): I have SQL Server 2005 x64. I found in the studio I can generate all
sorts of scripts, including the creation of indexes.
I works, however the script contains the CREATE TABLE statements as
well. I want the scripts to recreate the scripts on another filegroup
(testing a theory from previous post).
Am I missing a switch in the wizard to exclude CREATE TABLE?
I did create the script, but then I manually deleted all the CREATE
TABLE statements, which was a pain.
Thanks
Rob
Re: Scripted CREATE INDEX jezemine
3/12/2007 5:55:38 PM
[quoted text, click to view]

If you want to fine-tune what gets scripted, you might want to check
out this free app I wrote using SMO:

http://www.elsasoft.org/tools.htm

it will generate scripts for all objects in any 2000 or 2005 db. You
could easily modify it to script only indexes. source code is
available. implemented in C#.
AddThis Social Bookmark Button