dbTalk Databases Forums  

URGENT! Named Sets

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


Discuss URGENT! Named Sets in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default URGENT! Named Sets - 07-01-2004 , 01:52 PM






Hi !
I want to retrieve all "Named Sets" defined to a cube with ADO MD -
OpenSchema() method.
How can I do that?

To get dimensions I do:
OpenSchema(adDimensions, Array(DatabaseName,'',CubeName), EmptyParam,
ADODataset)

I tried:
The following example retrieves all of the mining models that exist in the
FoodMart 2000 database:
Const DMSCHEMA_MINING_MODELS = "{3add8a77-d8b9-11d2-8d2a-003029144fde}"
'Open the MINING_SERVICES schema rowset. Assume the existence of an ADO
'connection (cn) and an ADO recordset.
Set rst = cn.OpenSchema(adSchemaProviderSpecific,Array("Food Mart
2000",Empty,Empty), DMSCHEMA_MINING_MODELS)But it doesn't work too!!!
Thanks===========================================C ristiano Moraes da
SilvaSIG Soluções em Informática e Gestão LTDASanta Maria - RS -
Brasilcristiano (AT) sigbrasil (DOT)...gbrasil.com.br+55 552268699



Reply With Quote
  #2  
Old   
Patrice Lamarche
 
Posts: n/a

Default Re: URGENT! Named Sets - 07-01-2004 , 02:10 PM






Hello, I was having the same trouble.

I find a way to get the named set with DSO and the Commands collection of
the cube.

there is MDSCHEMA_SETS .. i have'nt test it

Best Regards,

Patrice

"Cristiano Moraes da Silva" <cristiano (AT) sigbrasil (DOT) com.br> a écrit dans le
message de news:OHddmv5XEHA.712 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Quote:
Hi !
I want to retrieve all "Named Sets" defined to a cube with ADO MD -
OpenSchema() method.
How can I do that?

To get dimensions I do:
OpenSchema(adDimensions, Array(DatabaseName,'',CubeName), EmptyParam,
ADODataset)

I tried:
The following example retrieves all of the mining models that exist in
the
FoodMart 2000 database:
Const DMSCHEMA_MINING_MODELS = "{3add8a77-d8b9-11d2-8d2a-003029144fde}"
'Open the MINING_SERVICES schema rowset. Assume the existence of an ADO
'connection (cn) and an ADO recordset.
Set rst = cn.OpenSchema(adSchemaProviderSpecific,Array("Food Mart
2000",Empty,Empty), DMSCHEMA_MINING_MODELS)But it doesn't work too!!!
Thanks===========================================C ristiano Moraes da
SilvaSIG Soluções em Informática e Gestão LTDASanta Maria - RS -
Brasilcristiano (AT) sigbrasil (DOT)...gbrasil.com.br+55 552268699





Reply With Quote
  #3  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default Re: URGENT! Named Sets - 07-01-2004 , 02:28 PM



Ok....
How can I do to install DSO, because my machine use a remote Analysis
Services server!

thanks


"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> escreveu na
mensagem news:%23VUh275XEHA.3012 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
Hello, I was having the same trouble.

I find a way to get the named set with DSO and the Commands collection of
the cube.

there is MDSCHEMA_SETS .. i have'nt test it

Best Regards,

Patrice



Reply With Quote
  #4  
Old   
Patrice Lamarche
 
Posts: n/a

Default Re: URGENT! Named Sets - 07-01-2004 , 03:02 PM



Here

oConn.Open "Provider=MSOLAP.2;Integrated Security=SSPI;Persist Security
Info=False;Data Source=localhost;Initial Catalog=foodmart 2000;Client Cache
Size=25;Auto Synch Period=10000"
Set rst = oConn.OpenSchema(adSchemaSets)

Best Regards,


"Cristiano Moraes da Silva" <cristiano (AT) sigbrasil (DOT) com.br> a écrit dans le
message de news:uhyR7D6XEHA.3420 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
Ok....
How can I do to install DSO, because my machine use a remote Analysis
Services server!

thanks


"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> escreveu na
mensagem news:%23VUh275XEHA.3012 (AT) tk2msftngp13 (DOT) phx.gbl...
Hello, I was having the same trouble.

I find a way to get the named set with DSO and the Commands collection
of
the cube.

there is MDSCHEMA_SETS .. i have'nt test it

Best Regards,

Patrice





Reply With Quote
  #5  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default Re: URGENT! Named Sets - 07-01-2004 , 03:36 PM



I've got an error with this code:

"Invalid field size" in the "OpenSchema()" line.


"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> escreveu na
mensagem news:%23vvgbZ6XEHA.2344 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Quote:
Here

oConn.Open "Provider=MSOLAP.2;Integrated Security=SSPI;Persist Security
Info=False;Data Source=localhost;Initial Catalog=foodmart 2000;Client
Cache
Size=25;Auto Synch Period=10000"
Set rst = oConn.OpenSchema(adSchemaSets)

Best Regards,


"Cristiano Moraes da Silva" <cristiano (AT) sigbrasil (DOT) com.br> a écrit dans le
message de news:uhyR7D6XEHA.3420 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Ok....
How can I do to install DSO, because my machine use a remote
Analysis
Services server!

thanks


"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> escreveu na
mensagem news:%23VUh275XEHA.3012 (AT) tk2msftngp13 (DOT) phx.gbl...
Hello, I was having the same trouble.

I find a way to get the named set with DSO and the Commands collection
of
the cube.

there is MDSCHEMA_SETS .. i have'nt test it

Best Regards,

Patrice







Reply With Quote
  #6  
Old   
cgallegos@grupomas.com
 
Posts: n/a

Default Re: URGENT! Named Sets - 07-14-2004 , 04:12 PM



Try this:

rst = con.OpenSchema(43, Array(database, null, cube));
if (rst.RecordCount>0) {
while (! rst.EOF) {
if (rst.fields.Item("EXPRESSION").value.search("Creat eVirtualDimension") < 0) {
Response.Write(rst.fields.Item("SET_NAME");
}
rst.movenext;
}
}
rst = null;


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

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.