0

我们有一个通过 SQL SSAS 托管的数据立方体。目前,我们有用户可以打开 Excel 电子表格,插入客户 ID,电子表格将根据该客户返回相关的多维数据集信息……例如销售至今、上次销售等。

我遇到的问题是.. 我试图通过 ASP.NET 启用此报告界面。我正在使用 ADOMD.NET 来读取多轴单元组,但这只是为了拉出一个特定的值以显示在页面上。

在关系\SQL 世界中,我会尝试将所有这些数据作为一个查询提取。将其存储在存储过程中。并调用它来提取我的所有数据。我将如何在多维世界中做类似的事情?简而言之,如果我必须从多维数据集中提取 10 个不同的单元格值,我不想进行 10 次单独的 SSAS 之旅来获取我的数据。

提前感谢您提供的任何指导!

--- 编辑 1--- 好的,想知道我是否有办法将我需要的所有数据“编译”成二维视图?如果我知道我需要 10 个不同的多维数据集值,我可以生成这些值,将它们存储为视图,然后在运行时查找该表吗?

4

1 回答 1

0

There are two approaches but in the multi-dimensional world this can be a tad tricky.
1) If the cell values you are getting belong to the same axes, you could always specify the exact cells you want to obtain (e.g. [Dimension].[Level].[A], [Dimension].[Level].[B], etc.)

2) Another approach based on your edit is to run the query as you suggested and store it into a SQL table for example. You could use an OpenQuery statement that has a linked server connection to your SSAS cube to run the MDX query, and place the results into a table for you to get a later time (sort of like a poor-man's cache).

HTH!

于 2012-11-14T05:32:25.160 回答