This KB illustrates that how to get connection string from an Excel sheet.
You can follow the given steps to get connection string.
Open a new Excel sheet.
Click Data tab à From Other Sources à From Analysis Services.
The Data Connection Wizard dialog appears. Provide server name in Server Name textbox and click Next.
When you have credentials to your SQL Server, enter its user name and password accordingly.
Select the Cube and click Next.
Finally, click Finish.
Now, click the Analyze tab à Change Data Source à Connection Properties…
The Connection Properties window appears. Select the Definition tab and copy the connection string.
You can use this connection string in your project or application, holding your OLAP control.
This page will automatically be redirected to the sign-in page in 10 seconds.