【问题标题】:Why does tableau throw a cursor error after adding column store index?为什么添加列存储索引后tableau会抛出游标错误?
【发布时间】:2018-12-14 07:00:45
【问题描述】:

我在我的一个 DW 表中添加了一个聚集列存储索引,一旦我这样做,当我尝试加入该表时,该表就会引发此错误。

以前有人遇到过这种情况吗?

【问题讨论】:

标签: sql-server tableau-api


【解决方案1】:

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

例如:

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

【讨论】:

    猜你喜欢
    • 2018-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-29
    • 2016-04-23
    • 2017-12-02
    • 2020-12-22
    相关资源
    最近更新 更多