saratcm
asked on
REORG AN INDEX IN SQL 2000
Hi All,
I am trying to reorg and Index using this below script
alter index index-name on databasename.tablename
reorganize ;
Is this syntax right, As it says incorrect syntax near index?
I am trying to reorg and Index using this below script
alter index index-name on databasename.tablename
reorganize ;
Is this syntax right, As it says incorrect syntax near index?
ASKER
already tried that, other than that do u find any syntax error there?
In SQL Server 2000, use this
DBCC DBREINDEX ("dbo.tablename", [index-name],80);
DBCC DBREINDEX ("dbo.tablename", [index-name],80);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Welcome..
alter index [index-name] on databasename.dbo.tablename