dbTalk Databases Forums  

Analisys Services from .NET

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


Discuss Analisys Services from .NET in the microsoft.public.sqlserver.olap forum.



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

Default Analisys Services from .NET - 03-31-2004 , 08:01 PM






H

I need access to Analisys Services from .NET ...

tr
DataSet myDS
myDS = new DataSet()
string ConnStr
ConnStr ="Provider=MSOLAP;Password=sa;Persist Security Info=True;Data Source=TAMLCS2;Initial Catalog=FoodMart 2000;"
string SQLSelect
SQLSelect = "with member [Measures].[Store Profit Rate] as '([Measures].[Store Sales]-[Measures].[Store Cost])/[Measures].[Store Cost]', format = '#.00%' select {[Measures].[Store Cost],[Measures].[Store Sales],[Measures].[Store Profit Rate]} on columns,Order([Product].[Product Department].members, [Measures].[Store Profit Rate], BDESC) on rows from Sales where ([Time].[1997])"
System.Data.OleDb.OleDbConnection mySqlConn
mySqlConn = new System.Data.OleDb.OleDbConnection(ConnStr)
mySqlConn.Open()
System.Data.OleDb.OleDbDataAdapter mySqlDA
//SqlClient.SqlDataAdapter mySqlDA
mySqlDA = new System.Data.OleDb.OleDbDataAdapter(SQLSelect,ConnS tr)
//.SqlClient.SqlDataAdapter(SQLSelect, ConnStr)
mySqlDA.Fill(myDS)
MyGrid.DataSource = myDS.Tables[0].DefaultView
MyGrid.DataBind()

the error message is : The Database FoodMart 2000 don't exist on lin
mySqlConn.Open()

somebody have any ide

thanks


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.