Jump to content
Software FX Community

Database Tutorial does not exist [COMException (0x80004005):


jovalle

Recommended Posts

Hi everybody <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I am evaluating Chart FX and I am doing my first program with ChartFx Olap Extension. I got an error when I try to show the WebForm in my localhost page.

I am using C# and Ms Analysis Services 2000. The database already exist in my PC.

This is the code:

 

//Create Olap extension object

 OlapExtension Olap1 = new OlapExtension(); 

 

//Create ADOMD.NET Data Provider Object

AdoMultiDimensionalData AdoMDnet = new AdoMultiDimensionalData();

 

//Create Connection string for FoodMark Cube

string connStr="Provider=msolap; Data Source=MyPC; Initial Catalog=Tutorial;";

 

//MDX Statement to Select Data

string mdxStr = "SELECT {[store].[store Country].[uSA].Children} ON COLUMNS,{CROSSJOIN(Descendants([Gender]),Descendants([Time].[1997]))} ON ROWS From [sales]";

 

//Connect to Analysis Services using ADOMD.NET

AdoMDnet.Connect(connStr, mdxStr);

 

//Set ADOMD.NET DataProvider to OLAP Extension

Olap1.DataSource= AdoMDnet;

 

//Add OLAP Extension to chart

Chart1.Extensions.Add(Olap1);

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...