Invalid option specified in CREATE INDEX statement

♀尐吖头ヾ 提交于 2019-12-11 22:48:32

问题


I'm trying to create a table which should ignore any duplicate value, using SQLCE. To do this, I figured I would select a column to be the index and use the IGNORE_DUP_KEYoption. When I run the code below:

CREATE NONCLUSTERED INDEX url_index ON Person (url ASC) WITH (IGNORE_DUP_KEY=ON)

I get an error message saying "Invalid option specified in CREATE INDEX statement. [option name = IGNORE_DUP_KEY]."

Is this because I'm using SQLCE? If so, how can I ignore duplicates in SQLCE?


回答1:


The only valid with statement for CREATE INDEX in SQL Server CE is STATISTICS_NORECOMPUTE.



来源:https://stackoverflow.com/questions/8566784/invalid-option-specified-in-create-index-statement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!