Search code examples
visual-studio-2010ssascubesql-server-data-tools

Configuring deployment of SSAS multidimensional cube to different environments


I have seen this answer Deploying SSAS cube to environments

Which describes how deployment of a SSAS cube can be automated, however what I can't see is how to configure the project to be able to deploy to multiple environments i.e. Development, UAT and Production, where each is on a different server and has a different data source.

I can see in the Visual Studio SSDT Analysis Services project that the configuration manager can be used to set multiple deployment configs in the USER SPECIFIC!! .dwproj.user file.

This allows me to set multiple SSAS deployment locations and when building for DEV or UAT etc.. the .deploymenttargets file gets set correctly.

What this doesn't do is allow me to set a different data source automatically during a build to auto change the .configsettings file.

Does anyone know how to do this?


Solution

  • I believe the dwproj file holds the different SQL connection strings per environment as described here: http://www.artisconsulting.com/blogs/greggalloway/2008/3/19/analysis-services-project-configurations

    I have seen a bug when you first set this up that the dwproj file is never flagged as dirty so those connection string changes are never saved to disk. If you have an issue with this I usually add a new Role object then immediately delete it. That marks the dwproj file as needing to be saved.