为什么在添加列存储索引后tableau引发光标错误?

时间:2018-12-13 21:18:40

标签: sql-server tableau

我向一个DW表中添加了一个集群列存储索引,当我尝试加入该表时,该tableau会立即抛出此错误。

enter image description here

以前有人遇到过吗?

1 个答案:

答案 0 :(得分:1)

在SQL 2016和更高版本上,作为一种解决方法,您可以在表上创建非聚集的Columnstore索引。该表将保留其聚集索引(或堆),并且其他可以利用它的查询将使用列存储。

例如:

drop table if exists cs_test 
create table cs_test (a int primary key, b int)

create nonclustered columnstore index ncci_test on cs_test(a,b)

go

declare c cursor local for select * from cs_test
相关问题