![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is it possible to get a list of available OLAP cubes on an Analysis Services server, while using ado.NET and not using adoMD? Thanks in advance, Charlie. |
#3
| |||
| |||
|
|
Hi, Is it possible to get a list of available OLAP cubes on an Analysis Services server, while using ado.NET and not using adoMD? Thanks in advance, Charlie. |
#4
| |||
| |||
|
|
Charlie, Here you go. This requires a reference to adodb, but you should get the general idea. Keith using System; using ADODB; namespace RawADOConsole { /// <summary /// Summary description for Class1. /// </summary class Class1 { /// <summary /// The main entry point for the application. /// </summary [STAThread] static void Main(string[] args) { // // TODO: Add code to start application here // ADODB.Connection conn = new ADODB.Connection(); conn.Open("provider=msolap; Datasource=LocalHost; Initial Catalog=FoodMart 2000;","","", (int)ADODB.CommandTypeEnum.adCmdUnspecified); ADODB.Recordset rs = conn.OpenSchema(ADODB.SchemaEnum.adSchemaCubes, null, System.Reflection.Missing.Value); while (!rs.EOF) { Console.WriteLine(rs.Fields["CUBE_NAME"].Value); rs.MoveNext(); } Console.ReadLine(); conn.Close(); } } } "Charlie" <nospam (AT) nospam (DOT) nospam> wrote in message news:%23rzSVc1uEHA.2116 (AT) TK2MSFTNGP14 (DOT) phx.gbl... Hi, Is it possible to get a list of available OLAP cubes on an Analysis Services server, while using ado.NET and not using adoMD? Thanks in advance, Charlie. |
![]() |
| Thread Tools | |
| Display Modes | |
| |