As a starting point, you could let Management Studio generate the XMLA alter
script for you: In the first dialog of your question, configure the things as you like them to be, and then select "Script" in the top toolbar, and then the target where you want to see the XMLA.
If you want to go the .net way, AMO would be the API to use (see http://msdn.microsoft.com/en-us/library/microsoft.analysisservices.aspx, but there are nearly no code examples in this documentation). You would probably want to set the ProactiveCaching
property of the partition you want to change (see http://msdn.microsoft.com/en-us/library/microsoft.analysisservices.partition.proactivecaching.aspx) to a ProactiveCaching
object having the correct settings (see http://msdn.microsoft.com/en-us/library/microsoft.analysisservices.proactivecaching.aspx).
AMO coding normally works like this:
- You connect to the server (Create a new
Server
object, call itsConnect
method). - You navigate through the object hierarchy from the server to the object you need (the specific partition object in your case).
- You change properties. This just changes the structures locally in your copy of the cube data structures.
- You call the
Update
property on the changed object or a parent of it to write the changes back to the server. - If there are no errors, you
Disconnect
from the server. Better still, you are using the C#using
construct for theServer
object in the first step above, asServer
implements 'IDisposable'.