I put here a handy piece of code that can empty the cache of a few items on SSAS.
\u0026lt; ClearCache xmlns = " http://schemas.microsoft.com/analysisservices/2003/engine " >
\u0026lt; Object >
\u0026lt; DatabaseID > Adventure Works DW 2008 \u0026lt;/ DatabaseID >
\u0026lt;/ Object >
\u0026lt;/ ClearCache >
level of a cube Background:
< ClearCache xmlns = " http://schemas.microsoft.com/analysisservices/2003/engine " >
< Object >
< DatabaseID > Adventure Works DW 2008 </ DatabaseID >
< CubeID > Adventure Works \u0026lt;/ CubeID >
\u0026lt;/ Object >
\u0026lt;/ ClearCache > ;
For a group of measurement:
\u0026lt; ClearCache xmlns = " http://schemas.microsoft.com/analysisservices/2003/engine " > ;
\u0026lt; Object >
< DatabaseID > Adventure Works DW 2008 </ DatabaseID >
< CubeID > Adventure Works </ CubeID >
< MeasureGroupID > Internet Orders \u0026lt;/ MeasureGroupID >
\u0026lt;/ Object >
\u0026lt;/ ClearCache >
Please note, these commands require XMLA well the ID objects, not their name. Under Management Studio, databases and cubes, we find the information in the properties of these objects (right-click Properties ).
However, this manipulation is not possible for measure groups. In this case, we can do it this way: Right click the measurement group-Script Have Measure Group To Create and retrieve the ID in the creation script. Besides, if you ever have another solution, I'm interested: it does not satisfy me.
However, this manipulation is not possible for measure groups. In this case, we can do it this way: Right click the measurement group-Script Have Measure Group To Create and retrieve the ID in the creation script. Besides, if you ever have another solution, I'm interested: it does not satisfy me.
And not having to search for them later these scripts, we can integrate them to the templates already present in Management Studio (thank you Romuald). To do this, go to the View menu - Template Explorer pane to display the Template Explorer, click on the cube of the window to view the models.