C # analysis services

We are currently using the following lines of code to connect to our SSAS server using C #. This server only works in multidimensional mode.

Server objServer = new Server();
objServer.Connect("ServerName");

      

Our new server is running in both multidimensional and tabular modes and we are getting common errors trying to connect using the same code this way.

Server objServer = new Server();
objServer.Connect("ServerName\Instance");

      

Connecting using ServerName \ Instance format works fine using SQL Server Management Studio, but our C # code is obviously missing.

+3


source to share


1 answer


Try to run \

inServerName\Instance

objServer.Connect("ServerName\\Instance");



or

objServer.Connect(@"ServerName\Instance");

+3


source







All Articles