How can I clear the Analysis Services cache without restarting?

Filed under: Analysis Services, Transact-SQL (T-SQL) — Ari Weil at 3:23 am on Thursday, November 15, 2007

You can use an XMLA Script like the following (replacing “{YOUR SSAS DB ID HERE}” with the valid Database ID:

<ClearCache xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”>
<Object>
<DatabaseID>{YOUR SSAS DB ID HERE}</DatabaseID>
</Object>
</ClearCache>

The nice thing about this approach is you can test a specific statement’s execution by prefacing it with this command.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>