我想使用以下查询在表中创建聚集列存储索引:
CREATE CLUSTERED COLUMNSTORE INDEX cci
ON agl_20180319_bck
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
消息 35343,级别 16,状态 1,第 6 行 语句失败。列“memberOf”的数据类型不能参与列存储索引。省略列“memberOf”。
“memberOf”采用以下格式:memberOf(nvarchar(max)).
如何克服/忽略这个错误,它是什么意思?
I have the following query:
DECLARE @value as nvarchar(max)
SET @value = '(company.[department] LIKE ''Development'')';
Run Code Online (Sandbox Code Playgroud)
I would like to extract the word between brackets keep it in a value and then put as input in a replace function like this.
select replace(@value, @department, 'another_string');
Run Code Online (Sandbox Code Playgroud)
You will say probably why I don't do it immediately with the replace function. The case is that this department string may change dynamically to another string for example country and I would like every time …
我需要制作一些机制来检查表X是否是列存储的,以及是否不进行转换.我知道要将表X转换为集群列存储索引,我们可以使用以下代码:
CREATE CLUSTERED COLUMNSTORE INDEX MyColumnStoreIndex
ON Table_X
Run Code Online (Sandbox Code Playgroud)
我想创建一个查询,检查表是否包含列存储索引.提前致谢.