You will see this or a similar code sample when referring to clearing the analysis services cache.  However, I have yet to find a good resource that explains exactly what running an empty MDX query against a cube really is doing. 

Here is an example of code to clear the cache:

<Batch xmlns="">



            <DatabaseID>Adventure Works DW</DatabaseID>






FROM [Adventure Works]

From what I have gathered (mainly due to feedback received from Darren Gosbell, is that running the empty MDX query on a cube essentially reloads in cache all of the calculated measures, named sets, scoping, etc… which have been setup and defined in the cube.  This does not cache any data.

If anyone has a good resource or additional information, I’d love to hear about it.

Technorati Tags: ,