Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Changing 'initial catalog' on connection causes Analysis Services Processing Task to fail

$
0
0

We find that if we deploy the OLAP database with a different name on the test server, then regardless of how we change the connection string provided to the SSIS package that processes the cube, then the package fails to connect to the database.  To clarify:

 

In development the OLAP database is called MyOlapDB and the source database is called MySqlDB.  Both are on the same machine.  When the the application is built and released for test, the test team install the databases on a replica of the production environment (i.e. web app on one machine, OLAP DB on another and SQL database on yet another).  They also, quite rightly, implement the new test databases so they incorporate the build version number.  So,  MyOlapDB123 and MySqlDB123 are both from build 123.

 

This is when the problems start.  Regardless of how the connection string is specified in the job that processes the cube, the SSIS integration package fails with the error:

 

[Analysis Services Execute DDL Task] Error: Errors in the metadata manager. Either the database with the ID of 'MyOlapDB' does not exist in the server with the ID of 'OurTestServer', or the user does not have permissions to access the object.

 

We have tried config files and job properties, but neither work.  Also, simply attempting to run the package using the DTEXECUI does not work either. 

 

Looking inside the XML of the package, we clearly see the ConnectionManager object which has the original connection string, which is

 

Data Source=localhost;Initial Catalog=MyOlapDB;Provider=MSOLAP.3;Integrated Security=SSPI;Impersonation Level=Impersonate;

 

However, editing the initial catalog here still does not solve the problem.  Searching the XML for the string MyOlapDB reveals the OLAP database name in two other places - both within the object data of the two Analysis Services Execute DDL tasks.

 

Anyone know how to solve this problem without having to hack the XML of the package?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>