create clustered index AOP_C_Idx on AOP_Master([Date])
Running this query gives the error
Server: Msg 169, Level 15, State 2, Line 2
A column has been specified more than once in the order by list. Columns in the order by list must be unique.
However I do not have any other indexes on the table. What could be the problem ?
And where did the dBForums Yak corral vanish ??Ensure that there are no duplicates in the specified column.|||No duplicates ??Can a clustered index only be unique ? What if I do not have unique values in the table ?|||Any Ideas Gurus ??|||I don't know...started a new one...|||Originally posted by Enigma
create clustered index AOP_C_Idx on AOP_Master([Date])
Running this query gives the error
Server: Msg 169, Level 15, State 2, Line 2
A column has been specified more than once in the order by list. Columns in the order by list must be unique.
However I do not have any other indexes on the table. What could be the problem ?
And where did the dBForums Yak corral vanish ??
Is that the exact sql?|||Originally posted by Enigma
No duplicates ??Can a clustered index only be unique ? What if I do not have unique values in the table ?
CREATE a non unique index?
What are you trying to do?|||I am trying to create a non unique Clustered index on a table which already exists and getting the error .
And yes this is the exact sql I am using
create clustered index AOP_C_Idx on AOP_Master([Date])|||What happens when you run
select *
from AOP_Master
order by [Date]?
Do you somehow have two date columns in the table? Can't be.|||I've had similiar strange unexplainable problems trying to create foreign keys and indexes too. I would try to create the fk or index and SQL server thought the index was already there eventhough it wasn't. I had to drop and re-create the table in order to get the fk or index to create. This is a shot in the dark but hope it helps.|||http://support.microsoft.com/default.aspx?scid=kb;en-us;293177
Here is the solution to the problem ...
I was hoping and I was right ....
IT IS A DOCUMENTED BUG|||Please post this also to SQLTeam.com for completeness|||Originally posted by Enigma
And where did the dBForums Yak corral vanish ??
I guess I have been away for a while... what is a sbForums Yak corral?
No comments:
Post a Comment