2
IはC#でクエリを実行するために、次のコードを使用:問合せOLAPサーバ
AdomdConnection con = new AdomdConnection("Datasource=local;...");
con.Open();
AdomdCommand command = con.CreateCommand();
command.CommandText = input;
AdomdDataReader reader = command.ExecuteReader();
while (reader.Read())
{
for(i =0; i<reader.fieldCount; i++){
a[i]=reader.GetString(i);
}
return a;
Howeever、このコードは、各セルの階層に完全なパスを返します。つまり、データの各行は[AllGeography、Canada、Vancouver、Allproduct、bikes、accessories、297483]と同じです。 私は葉とメジャー値だけを取得したい:[vancouver、accessories、297483]。私は何をすべきか?どのように私は葉を指定することができますか?