How to change the datasource of solution file for SSAS

Jason Yeung 66 Reputation points
2022-06-20T18:15:33.13+00:00

Hi,

I currently have a production server (it's a VM) which contains a SQL database and SSAS installed. There is a solution file that when I make changes, it would affect the SSAS server directly. I recently cloned this VM to establish a sandbox server. I wanted to keep the environment as similar to the production environment and it will have a different name than the production server.

The sandbox will also have the solution file that interacts with the SSAS server. I want to change the file so that it would update the sandbox SSAS whenever I make changes to it. However it will still modify the production environment. For example, when I went to the "Data Sources" to change the connection string on the sandbox, it will also update the production environment. I was wondering how do I change the solution file so that it will change only the sandbox environment?

Jason

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,344 questions
SQL Server Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-06-21T05:33:13.287+00:00

    In SSDT a right-mouse click on the project => Properties => Deployment => Server; you have to change the target server name.

    0 comments No comments

  2. Jason Yeung 66 Reputation points
    2022-06-21T20:15:15.877+00:00

    Hi @Olaf Helper ,

    Thanks for your reply. When I go to properties, there is no "Deployment" section. I get the following:
    213526-20220621-deployment.jpg

    What currently happens with the package is that if I make changes to the sln file, it would change the SSAS right away once I save the sln file. There is no separate deployment. This SSAS was deployed via Microsoft GP and it's not a package built from stratch.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.