Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Creation script for an index
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

4 Posts

Posted - 10/27/2005 :  21:35:27  Show Profile  Reply with Quote
Hi -

I could not find an SQL script, which would generate index creation DDL for a specific table/index. Query Analyzer does it, but I need to do it programmatically. Does anyone have a working script?
Thank you.

Posting Yak Master

165 Posts

Posted - 10/28/2005 :  03:06:25  Show Profile  Visit activecrypt's Homepage  Send activecrypt a Yahoo! Message  Reply with Quote
didnt get you onthis !

if INDEX CAN BE GENERATED FROM EM then it can be generated by SCRIPT To , have you read BOL for * CREATE INDEX * .


MSSQL Server encryption software
Go to Top of Page

Premature Yak Congratulator

22864 Posts

Posted - 10/28/2005 :  03:32:53  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
This is the forum to contribute workable scripts
Hereafter post your questions at relevent forums like "Developer Forum"


Failing to plan is Planning to fail
Go to Top of Page

Starting Member

4 Posts

Posted - 10/28/2005 :  12:59:53  Show Profile  Reply with Quote
I am moving this topic to "Developer" folder
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000