Articles in this section
Category / Section

How to give connection string for OlapClient

1 min read

The Syncfusion OlapDataManager ADOMD.NET format connection strings. The Basic structure is

Data Source = machine name; Initial Catalog= database name; Provider = msolap;

 

For connection to an Offline cube:

 

C#

 
// Give the local path for the cube in Datasource.
 OlapDataManager OlapDataManager=  new OlapDataManager("Datasource=AdventureWorks.cub; Provider=msolap;"); 

 

VB

 

 
'Give the local path for the cube in Datasource.
 
Dim olapDataManager As OlapDataManager = NewOlapDataManager("Datasource=AdventureWorks.cub; Provider=msolap;")

 

For Connection to a local server

 

VB

 

 
// Give the local server name for the cube in Datasource and database name in Initial Catalog.
 OlapDataManager OlapDataManager=  newOlapDataManager("Datasource=localhost; Initial Catalog = Adventure Works DW;"); 

 

 

[VB] 
'Give the local server name for the cube in Datasource and database name in Initial Catalog.
Dim olapDataManager As OlapDataManager = NewOlapDataManager("Datasource=localhost; Initial Catalog = Adventure Works DW;" )

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied