【问题标题】:Add translations to calculated member through AMO通过 AMO 为计算成员添加翻译
【发布时间】:2011-01-16 13:37:20
【问题描述】:

我正在使用 AMO 以编程方式生成 OLAP Cube。如何为计算成员添加翻译? (SQL Server 2008)

我试过如下,但还是不行:

MdxScript mdx = cube.MdxScripts[0];
CalculationProperty calculation = new CalculationProperty();
calculation.CalculationReference = "[Calculated measureName]";
calculation.CalculationType = CalculationType.Member;
Translation translation = new Translation();
translation.Caption = "Some Caption";
translation.Language = "Language Code";
calculation.Translations.Add(translation);
mdx.CalculationProperties.Add(calculation);

【问题讨论】:

    标签: sql-server-2008 olap cube ssas


    【解决方案1】:

    我在上面的代码中发现了问题,CalculationReference 属性应该设置为“[Measures].[Calculated measureName]”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多