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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

index reorganize

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA
In SQL Server 2005, the syntax for index reorganize is awful.

it's like:

alter index <index name> on <table name>.<column name> reorganize

I tried to first detect the fragmented index and then using alter index ... reorg ... to defrag them. But this weird syntax blocks me. Is it necessary to specify the column name if I just want reorganize it???

 
Sorry microsoft!, my mistake, the syntax is:


alter index <index name> on <table name> reorganize
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top