How can i create a Spatial Index on an Indexed View?

社会主义新天地 提交于 2019-12-08 08:59:42

问题


I have a view which already has SchemaBinding applied AND it has a UNIQUE CLUSTERED index.

Now, i'm trying to add a second index, which is a SPATIAL index ... and I get the following error message:-

and here's the a piccy of the schema....

Can someone help, please?


回答1:


FFS - I found my answer.

Spatial Indexes cannot be specified on indexed views.

The error message is incorrect / misleading.

Cheers & Heads up to a previous SO question which is very similar.

Epic Fail again.



来源:https://stackoverflow.com/questions/5798487/how-can-i-create-a-spatial-index-on-an-indexed-view

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