Discussion:
Getting started
(too old to reply)
Nick
2006-08-28 20:13:02 UTC
Permalink
Hello,

I'm new to the ODBO world so please pardon my ignorance. I recently
installed SQL Server and Analysis Server 2005. I installed the Adventure
Works DW sample and it seems to be setup properly. I want to be able to use
MDX to query the cubes in a C# application. Where do I start?

This isn't MS related, but how are other cubes queried? I know MDX isn't
used for Oracle, but can a connection be made to an Oracle db using ODBO and
then queried using their query syntax?

Thanks,
Nick
Kevin Yu [MSFT]
2006-08-29 01:53:47 UTC
Permalink
Hi Nick,

Using the MDX in C#, you have to first add reference to an assembly
Microsoft.AnalysisServices.AdomdServer. This assembly installs to your
machine with SQL Server analysis service. Then you can use the classes
inside this namespace to do the MDX queries. For more information about
ADOMD.NET, please check the following link:

http://msdn2.microsoft.com/es-es/library/ms123483.aspx

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nick
2006-08-29 21:13:02 UTC
Permalink
Hi Kevin,

Thank you very much for your help, I really appreciate it. Pardon my
ignorance, but I have a few other questions. I understand that ADOMD.NET is
used for connecting strictly to SSAS, correct? Are there ways to also connect
to other OLAP sources, Oracle, for instance?

Thanks again.

Nick
Post by Kevin Yu [MSFT]
Hi Nick,
Using the MDX in C#, you have to first add reference to an assembly
Microsoft.AnalysisServices.AdomdServer. This assembly installs to your
machine with SQL Server analysis service. Then you can use the classes
inside this namespace to do the MDX queries. For more information about
http://msdn2.microsoft.com/es-es/library/ms123483.aspx
Kevin Yu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Kevin Yu [MSFT]
2006-08-30 01:11:21 UTC
Permalink
Hi Nick,

Yes, as you know, it is used for connecting strictly to SQL Server Analysis
Service and cannot be used to connect to other OLAP sources.

Kevin Yu
Microsoft Online Community Support
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Chu Xu (MSFT)
2006-09-15 19:04:50 UTC
Permalink
Use AdoMD, here is an example:

string connectionString = "Provider=MSOLAP.3;Data
Source=localhost;" +
"Integrated Security=SSPI;Initial
Catalog=FoodMart2000;";
string mdxQuery = "/* your query here */";
AdomdConnection con = new
AdomdConnection(connectionString);
con.Open();
AdomdCommand cmd = new AdomdCommand(mdxQuery, con);
CellSet cs = cmd.ExecuteCellSet();

AdoMD.Net cannot be used to connect to Oracle.


Chu
Post by Nick
Hello,
I'm new to the ODBO world so please pardon my ignorance. I recently
installed SQL Server and Analysis Server 2005. I installed the Adventure
Works DW sample and it seems to be setup properly. I want to be able to use
MDX to query the cubes in a C# application. Where do I start?
This isn't MS related, but how are other cubes queried? I know MDX isn't
used for Oracle, but can a connection be made to an Oracle db using ODBO and
then queried using their query syntax?
Thanks,
Nick
Loading...