&sp;Lets see the problem
Here are two XMLA scripts for backup databases
<Backup xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”>
<File>adv1.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
<Backup xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”>
<File>mine1.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
Here when you run this query in XMLA query window it will give error
Executing the query …
The ‘Backup’ element at line 15, column 76 (‘http://schemas.microsoft.com/analysisservices/2003/engine’ namespace) appears more than once under Envelope/Body/Execute/Command.
Execution complete
so we need to run it in batch. In batch we can run multiple XMLA query. But since this is backup we can not run it in transaction. So we have to specify transaction as false in the query
So the new query will be
<Batch xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine” Transaction=”false” >
<Backup xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”>
<File>adv1.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
<Backup xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”>
<File>mine1.abf</File>
<AllowOverwrite>true</AllowOverwrite>
</Backup>
</Batch>
Cheers
Amish Shah
September 13, 2011 at 7:12 am |
Thank you so much, U saved my day.
September 27, 2012 at 12:38 am |
You da man!
November 15, 2012 at 7:42 am |
Thanks, it was a very helpful tip