troubleshooting Question

Cannot create index on view 'VIEW_NAME'. It does not have a unique clustered index.

Avatar of Member_2_7967119
Member_2_7967119 asked on
SQLMicrosoft SQL Server
13 Comments1 Solution747 ViewsLast Modified:
I created a fulltext catalog using the following command.

CREATE FULLTEXT CATALOG [DMSRepositoryFTCat] WITH ACCENT_SENSITIVITY = ON
AS DEFAULT

Before I can create a full-text index on the VIEW  , I am trying to create a Unique Index using the following command.
CREATE UNIQUE INDEX UI_DMS_REP_ID ON DMS_MANAGEMENT_REPOSITORY_VIEW(ID)

But I am getting the error "Cannot create index on view 'DMS_MANAGEMENT_REPOSITORY_VIEW'. It does not have a unique clustered index."

How can I create a Unique Cluster Index on the view  DMS_MANAGEMENT_REPOSITORY_VIEW which has outer join within it. or is there something I am doing wrong.

I am attaching the view script aswell.

Please suggest.
ASKER CERTIFIED SOLUTION
Mark Wills
Topic Advisor
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros