SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


xmla script for automate ssas database backup


xmla script for automate ssas database backup

Author
Message
alokkumar_srivastava
alokkumar_srivastava
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 54
Hi

WE want to write one xmla script to take backup of all ssas data base in production envirnment to take back up in on go So we don't need take back up one by one .

I am new in xmla .Please guide me to write script for this requirement .Sample of script will kelp me to move forward .

Regards,
Alok
happycat59
happycat59
SSCarpal Tunnel
SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)

Group: General Forum Members
Points: 4769 Visits: 3221
I find that the easiest way to get started with XMLA is to look at examples and the easiest way to get some examples is to use Management Studio. Most (maybe even all) of the activities that you can do by right clicking have the option to script the XMLA for the task you are trying to perform.

e.g. to backup a database, I right clicked, selected backup, de-selected "Encrypt back file", scripted the result which looked a bit like
<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>Your database name</DatabaseID>
</Object>
<File>Your back filename.abf</File>
</Backup>

Your next best resource is to use Books Online which you should have installed onto your workstation. Search for XMLA in the index and start reading.



alokkumar_srivastava
alokkumar_srivastava
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 54
Hi Thanks to reply that is really helpful to learn .

But i am stuck to write one xmla script that will take back up for all ssas database in one go , It's straight forward to write script for one data base or we can easily see in management stdio .

Any ideal to write or join xmla script for number of data base will helpful to save my a lot effort .

Thanks & Regards,
Alok
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search