dbTalk Databases Forums  

List of cubes with ADO.NET

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss List of cubes with ADO.NET in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Charlie
 
Posts: n/a

Default List of cubes with ADO.NET - 10-26-2004 , 07:26 AM






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.



Reply With Quote
  #2  
Old   
Joerg
 
Posts: n/a

Default RE: List of cubes with ADO.NET - 10-27-2004 , 08:07 AM






Hello Charlie,
you can get a list of all cubes and much more using
the schemaRecordsets of the Analysis Services or
try to work with ADOMD.NET

HTH
Jörg



"Charlie" wrote:

Quote:
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.




Reply With Quote
  #3  
Old   
Keith
 
Posts: n/a

Default Re: List of cubes with ADO.NET - 10-27-2004 , 12:13 PM



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

Quote:
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.





Reply With Quote
  #4  
Old   
Charlie
 
Posts: n/a

Default Re: List of cubes with ADO.NET - 11-02-2004 , 04:40 AM



Thanks guys.

Is the same way apply for getting a list of Member Properties for a member?

Thanks!

"Keith" <keith (AT) alh (DOT) com> wrote

Quote:
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.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.