Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create unique clustered index error 8662

Posted on 2008-06-09
4
Medium Priority
?
497 Views
Last Modified: 2010-04-21
Experts,
Error 8662 is not allowing me to create a unique CLUSTERED INDEX  on a table.  Can some one please advise.
SQL 2000.

CREATE UNIQUE CLUSTERED INDEX
INDEX NAME
ON DBO.TABLE NAME
(
COLUMN1, COLUMN2, COLUMN
)
Thanks!
0
Comment
Question by:Rainbow002
  • 2
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 300 total points
ID: 21744916
not sure which error that is exactly, but there are only this reasons I know of off the top of my hat:
* there is already a clustered index on that table
* there is at least 2 rows that have the same values for column1, column2 and column3
* there is not enough space to create the index, and/or autogrow of the database cannot increase fast enough ...
* there is already a index with the same columns in that order
0
 

Author Comment

by:Rainbow002
ID: 21745326
Below is the excat error:
Server: Msg 8662, Level 16, State 1, Line 1
An index cannot be created on the view 'VW_RES_FA_T' because the view definition includes an unknown value (the sum of a nullable expression).

Actually i was creating index on view but just got to know that we can't craete index on a view.  If we have to create one, do we have option to create this on a view.  Thanks!

0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 300 total points
ID: 21746061
>Actually i was creating index on view but just got to know that we can't craate index on a view.  I
you can, but it requires some conditions to be followed on the views' sql...
here is a good article summing it up:
http://www.sqlteam.com/article/indexed-views-in-sql-server-2000
0
 

Author Closing Comment

by:Rainbow002
ID: 31465470
Thanks Angelll
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question