dbTalk Databases Forums  

Obtain relational tables

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


Discuss Obtain relational tables in the microsoft.public.sqlserver.olap forum.



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

Default Obtain relational tables - 04-13-2004 , 04:33 AM






Hi,

I need to make in vb code something to know the tables that are used in a
cube.

Does anybody have an example of how to know in vb.net the tables of the
cube?

I think that it must be easy because in the Analysis Manager appears the
fact table and the dimension table!!!

Thank's in advance.

Un saludo,

Enrique Barceló



Reply With Quote
  #2  
Old   
Andrea Temporin
 
Posts: n/a

Default Re: Obtain relational tables - 04-13-2004 , 04:51 AM






I did something like that with ADOMD (not ADOMD.NET) but I think there's
surely the same properties even in the .NET version.
Any way, if you use ADOMD (VS 6.0) you can do something like that:

dim MyServer as Object
dim MyDb as Object
dim MyCube as Object

Set MyServer = New DSO.Server
MyServer.Connect "ServerName"
Set MyDB = MyServer.MDStores.Item("NameOfMyDb")
Set MyCube = MyDB.Cubes.Item("NameOfTheCube")
MsgBox MyCube.FactTable 'FactTable of the cube in the format user.table
MsgBox MyCube.FromClause 'List of every table and View used by the cube
in the format user.table
MsgBox MyCube.JoinClause 'Join clause of the fact table with its
dimensions

You've got the same propeties for dimensions if you need them.
As I said I didn't see ADOMD.NET but I'm sure that there's a DSO object with
properties like those.
Goo luck
Andrea

"KLEIOS" <ebarceloNOSPAM (AT) kleios (DOT) net> ha scritto nel messaggio
news:uYtwrpTIEHA.3356 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Quote:
Hi,

I need to make in vb code something to know the tables that are used in a
cube.

Does anybody have an example of how to know in vb.net the tables of the
cube?

I think that it must be easy because in the Analysis Manager appears the
fact table and the dimension table!!!

Thank's in advance.

Un saludo,

Enrique Barceló





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.