public static CubeDef GetCubeDef(string cubeName) { ConnectionClass con = new ADODB.ConnectionClass(); con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;",string.Empty,string.Empty,(int)ConnectModeEnum.adModeUnknown); CatalogClass cat = new ADOMD.CatalogClass(); cat.ActiveConnection = con; return cat.CubeDefs[cubeName]; }
public static CubeDef GetCubeDef(string cubeName) { ConnectionClass con = new ADODB.ConnectionClass(); con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;", string.Empty, string.Empty, (int)ConnectModeEnum.adModeUnknown); CatalogClass cat = new ADOMD.CatalogClass(); cat.ActiveConnection = con; return(cat.CubeDefs[cubeName]); }
private void Page_Load(object sender, System.EventArgs e) { ConnectionClass con = new ADODB.ConnectionClass(); con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;", string.Empty, string.Empty, (int)ConnectModeEnum.adModeUnknown); CatalogClass cat = new ADOMD.CatalogClass(); cat.ActiveConnection = con; outputHTML = TransformXMLStream(GetTreeXML(cat, con), Server.MapPath("xsl/tree.xsl")); }
private void Page_Load(object sender, System.EventArgs e) { ConnectionClass con = new ADODB.ConnectionClass(); con.Open("Location=localhost;Initial Catalog=PsiMedicaCubes;Provider=MSOLAP;",string.Empty,string.Empty,(int)ConnectModeEnum.adModeUnknown); CatalogClass cat = new ADOMD.CatalogClass(); cat.ActiveConnection = con; outputHTML = TransformXMLStream(GetTreeXML(cat,con),Server.MapPath("xsl/tree.xsl")); }