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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...