我听到HAB。 NET, but +1 for findings that. 相反,我刚刚进行了一个简单的连接测试。 该网络如下。 我转而把它变成了与邮政管理处合作的一个轨道。 显然,你需要界定你的缓冲栏目和类型,但希望通过高压。
www.un.org/Depts/DGACM/index_spanish.htm 访问微软。 分析处。 AdomdClient category, Add a reference to ADOMD. NET and Save all. 随后,以下代码将适当运作。
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
using Microsoft.AnalysisServices.AdomdClient;
public class ScriptMain : UserComponent
{
public override void CreateNewOutputRows()
{
string connectionString = string.Empty;
connectionString = "Provider=MSOLAP;Data Source=http://hyperion00:13080/aps/XMLA; Initial Catalog=GrossRev;User Id=Revenue;Password=ea$yMon3y;";
string query = "SELECT ...";
AdomdDataReader reader = null;
try
{
using (AdomdConnection conn = new AdomdConnection(connectionString))
{
conn.Open();
using (AdomdCommand cmd = new AdomdCommand(query, conn))
{
reader = cmd.ExecuteReader();
while (reader.Read())
{
// Replace Console.WriteLine with assignment of
// Output0Buffer.AddRow();
// Output0Buffer.column = (stronglyTyped) reader[i]
Console.WriteLine(reader.GetString(0));
Console.WriteLine(reader.GetString(1));
}
Console.WriteLine("fin");
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
throw;
}
}
}