如何在索引视图上创建空间索引? [英] How can i create a Spatial Index on an Indexed View?

查看:475
本文介绍了如何在索引视图上创建空间索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经应用了 SchemaBinding 的视图,它有一个 UNIQUE CLUSTERED 索引。

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

现在,我正在尝试添加第二个索引,这是一个SPATIAL索引......我收到以下错误消息: -

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....

有人可以帮忙吗?

推荐答案

FFS - 我找到了答案



无法在索引视图上指定空间索引。

Spatial Indexes cannot be specified on indexed views.


错误消息不正确/误导。

The error message is incorrect / misleading.

干杯&前往以前的SO问题非常相似。

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

史诗再次失败。

这篇关于如何在索引视图上创建空间索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆