Cannot update the 'Database' object 'DB Cube_Temp', it needs to be part of a connected Server object
I think you need to call sSAS_CalculationServer.Update() before trying to update the database.
June 20th, 2015 4:39am

We have an application that takes an existing cube, clones it and then updates it in C#.

Database dbTarget = dbSource.Clone();
dbTarget.Name = databaseName_Target;
dbTarget.ID = databaseName_Target;
dbTarget.DataSourceImpersonationInfo = new ImpersonationInfo(ImpersonationMode.ImpersonateServiceAccount);
sSAS_CalculationServer.Databases.Add(dbTarget);
dbTarget.Update(UpdateOptions.ExpandFull);

We are receiving the following error when trying to Update the cube (the last line of code):

Cannot update the 'Database' object 'DB Cube_Temp', it needs to be part of a connected Server object

Any help would be appreciated.


Free Windows Admin Tool Kit Click here and download it now
June 20th, 2015 5:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics