Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

generate create index scripts

Status
Not open for further replies.

Zahier

MIS
Joined
Oct 3, 2002
Messages
97
Location
ZA
Hi Techies,

I know EM has the functionality to generate create scripts, but I am in need of a script to run from the command line.

I need to automatically generate create index scripts each time a new table is created on my replicated server. I create a new table each time the old table reaches 1 million records and then drop the indexes. Because the check constraint "range" changes on the new table each time, I need to generate the index script to contain this new range before I drop the indexes. Basically this is for my partitioned views.

Anyone have a script to generate "create index"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top