.NET provides really simple methods for accessing the Analysis Services OLAP cube. Therefore, I would suggest that you create an SSAS cube with your data. Make shure u using the correct Datasheme (Star- or Snowflake-Scheme)
After creating your cube, you can easily access it using .NET. Reading measurements, levels and memoirs of all cubes in the catalog of analytical services:
AdoConn = new ADODB.Connection();
AdoConn.Open("provider=msolap;Data Source=localhost;initial catalog=Final;", "", "", 0);
catalog = new ADOMD.Catalog();
catalog.ActiveConnection = AdoConn;
cubes = catalog.CubeDefs;
foreach (ADOMD.CubeDef cube in cubes)
{
cube.Name.ToString();
foreach (ADOMD.Dimension dimension in cube.Dimensions)
{
dimension.Name.ToString();
foreach (ADOMD.Hierarchy hierarchy in dimension.Hierarchies)
{
hierarchy.Name.ToString();
foreach (ADOMD.Level level in hierarchy.Levels)
{
level.Name.ToString()
}
}
}
}
AdoConn.Close();
source
share