在北欧使用SQL Azure P1 Premium,V12,我可以这样做:
Aaaaaaaa....
Bbbbb
Ccccccccc
但不是这样:(使用Microsoft.SqlServer.SqlEnum,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91)
CREATE CLUSTERED COLUMNSTORE INDEX cci_Simple ON SimpleTable;
我明白了:
var t = new Table(db, "SimpleTable");
// ... Add Columns
t.Create()
var index = new Index(t, "cci_" + t.Name)
{
IndexType = IndexType.ClusteredColumnStoreIndex,
};
index.Create();
目标引擎类型不支持对象或其中一个属性。
参考;
https://msdn.microsoft.com/library/gg492153.aspx
http://www.nikoport.com/2014/12/12/azure-columnstore-1-the-initial-preview-offering/
答案 0 :(得分:0)
不理想:
db.ExecuteNonQuery(string.Format("Create Clustered Columnstore Index CC_{0} on dbo.{0}", table.Name));
sqlInjection转义等