| MDX-How do I clear Analysis Services (SSAS) database cache? |
| Written by Vidas Matelis | |||
| Tuesday, 15 May 2007 10:26 | |||
|
Q: How do I clear Analysis Services (SSAS) database cache? A: To clear a cache you should use XMLA command ClearCache. You can choose to clear cache for database, cube or measure group. Note: you should specify object IDs and not names. In many cases this might not be the same. To see ID of the object you can open database in the BIDS, then select object (database, cube or measure group) and check value for property ID. Example of command to clear cache for database:
Example of command to clear cache for cube:
Example of command to clear cache for measure group:
You cannot clear cache for partition. You will get following error message:
If you are testing one MDX script performance, you should first clear cache and then submit query. You can easily submit clear cache XMLA statement and MDX query in the same batch:
|
Most read
- How to install Adventure Works SQL DW and Analysis Services 2005/2008 sample database and project
- MDX-How can I get Last (Previous) Year to Date (YTD) values?
- What TCP port SQL Server Analysis Services 2005 uses
- MDX-How do you calculate monthly average of one year, optionally including empty months?
- MDX-How do you format or round KPI expression value?








Thank you in advance.
Peyman