我使用下面的C#代碼段用於使用MDX查詢和ADOMD適配器從立方體檢索數據: public DataTable GetDataTable(string query, string connectionString)
{
DataTable data = new DataTable();
using (AdomdConnection cubeConnection = new A
如果我在SQL Server Management Studio中執行MDX查詢,我會在2秒內得到該查詢的結果。它返回大約400行,6列。 當我通過網絡ADOMD &循環執行相同的查詢時,大約需要5分鐘。 什麼是使用ADOMD檢索數據的最快方法&爲什麼這種方法需要這麼長時間? 我正在使用以下代碼。 namespace Delete
{
public class TreeNode
我有一個多維數據集,我試圖使用以下代碼檢索數據。我不知道列和行的查詢數將會返回。 我只想讀取每一列上每列的值。 void OutputDataWithXML()
{
//Open a connection to the local server.
AdomdConnection conn = new AdomdConnection("Data Source=
我有一個MDX查詢#ERROR(和not null): with member [Measures].[Error Measure] as 1/[Measures].[Non Existing]
select [Measures].[Error Measure] on 0 from [MyCube]
其中[措施] [不存在的]不存在MyCube。 如果我試圖在SSMS中執行這個查詢,我會收到