dbTalk Databases Forums  

Re: HELP: Getting MDX from OWC

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


Discuss Re: HELP: Getting MDX from OWC in the microsoft.public.sqlserver.olap forum.



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

Default Re: HELP: Getting MDX from OWC - 04-01-2004 , 05:39 PM






Hey RE BT,

I really wish that there was a way to get MDX from OWC! People have
suggested the logfile approach but it doesn't write the correct MDX
queries (unless I did it wrong, please post the code how to do it).

I saw some techniques in converting to the XML to MDX but it only
worked on simple queries! If you have code that works please post!

If I can only get the MDX so I can feed it to the chartFX charts!
The strange thing is that you can import a MDX into OWC but you can't
export it! Maybe one day we'll be able to get MDX from OWC!

Either way, if anybody can post some techniques to get MDX from OWC it
would be greatly appreciated!

l8r,

Phin



bti (AT) ementor (DOT) no (Bj?rn Tingstadengen) wrote in message news:<f07399d2.0403311225.4ee6ac7f (AT) posting (DOT) google.com>...
Quote:
mrwoopey (AT) yahoo (DOT) com (mrwoopey) wrote in message news:<e48ab325.0403260914.57b08625 (AT) posting (DOT) google.com>...
Hi,

Does anybody know how to get MDX from OWC? I need MDX so chartFX can
create OLAP charts (unless you know of another way to generate chartFX
charts with OWC).

I posted a similar question a few months ago and I was hoping somebody
now had a solution:

http://groups.google.com/groups?hl=e...3DN%26tab%3Dwg

Can you get MDX from OWC11 (I'm using 10 right now)?

I believe you can't write MDX dirctly in OWC XML code however you can
try
iterpret a few lines of XML code to see how the XML tags are designed
and then try witing it as XML/MDX.

Unfortenately there is no new enhancements in OWC 11, however
Microsoft has
fixed a few unpeasent bugs that appear in Office 10 (at lest in OWC
10.4109)

RE BT




Thanks!

Phin

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default Re: HELP: Getting MDX from OWC - 04-02-2004 , 09:56 AM






What do you mean by the correct MDX queries
If your connection string looks like this, it should work

pt.ConnectionString = "Provider=MSOLAP.2;Data Source=localhost;log file=c:\\your folder\\mdx.log;Initial Catalog=Foodmart 2000";

(I'm using \\ because of JScript, don't need them in VBScript). Be aware this is a Unicode file, some text editors may not display it correctly

Of course OWC makes heavy use of session members and sets, and names won't be very mnemonic, but you can still recover the MDX query

BTW, when you import MDX into OWC, the internal representation of OWC doesn't keep the original query. So, if you saved the xmldata property and recovered it later it would return a different cellset than the original query. For example, if you feed OWC an MDX query that filters products with sales greater than 2000, OWC would only keep the specific members and it would not reapply the filter to the current cube data

HTH
Bria
www.geocities.com/brianaltmann/olap.htm



Reply With Quote
  #3  
Old   
Tom Chester
 
Posts: n/a

Default Re: HELP: Getting MDX from OWC - 04-02-2004 , 12:38 PM



Be forewarned: As you interact with OWC it issues incremental queries.
Suppose you are viewing {USA, Canada} then you drilldown on USA. OWC issues
a new query to get USA.Children and then inserts the results into the view.
(I understand this is the reason the query string is not exposed as a
readable property -- because it might confuse.)

public @ the domain below
www.tomchester.net

"mrwoopey" <mrwoopey (AT) yahoo (DOT) com> wrote

Quote:
Hey RE BT,

I really wish that there was a way to get MDX from OWC! People have
suggested the logfile approach but it doesn't write the correct MDX
queries (unless I did it wrong, please post the code how to do it).

I saw some techniques in converting to the XML to MDX but it only
worked on simple queries! If you have code that works please post!

If I can only get the MDX so I can feed it to the chartFX charts!
The strange thing is that you can import a MDX into OWC but you can't
export it! Maybe one day we'll be able to get MDX from OWC!

Either way, if anybody can post some techniques to get MDX from OWC it
would be greatly appreciated!

l8r,

Phin



bti (AT) ementor (DOT) no (Bj?rn Tingstadengen) wrote in message
news:<f07399d2.0403311225.4ee6ac7f (AT) posting (DOT) google.com>...
mrwoopey (AT) yahoo (DOT) com (mrwoopey) wrote in message
news:<e48ab325.0403260914.57b08625 (AT) posting (DOT) google.com>...
Hi,

Does anybody know how to get MDX from OWC? I need MDX so chartFX can
create OLAP charts (unless you know of another way to generate chartFX
charts with OWC).

I posted a similar question a few months ago and I was hoping somebody
now had a solution:


http://groups.google.com/groups?hl=e...3DN%26tab%3Dwg

Can you get MDX from OWC11 (I'm using 10 right now)?

I believe you can't write MDX dirctly in OWC XML code however you can
try
iterpret a few lines of XML code to see how the XML tags are designed
and then try witing it as XML/MDX.

Unfortenately there is no new enhancements in OWC 11, however
Microsoft has
fixed a few unpeasent bugs that appear in Office 10 (at lest in OWC
10.4109)

RE BT




Thanks!

Phin



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.