Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Backup all SSAS databases using TSQL

By Theo Ekelmans,

This script enumerates all SSAS databases and backups them using a MSOLAP linked server.

Especially usefull if your BI dudes don't allways tell the DBA they added a new SSAS database, but *do* expect that everyting is allways backed up!

Usage: 

Set the backup path to your desired location (line 15)

Replace the <YourServerName> stub, and run the commented part of the script once (between /* and */) , this will setup a linked server for the XMLA script

And thats it, hit F5 and see the .abf files apearing :)

After that you can tweak it to your specific situation, have datetime stamps, etc.

Enjoy, 

Theo

Total article views: 2564 | Views in the last 30 days: 15
 
Related Articles
FORUM

Monitoring script

script

FORUM

Script

Need Automated Script

FORUM

drop script

drop script

FORUM

Script component

Script component

Tags
analysis services (ssas)    
automatic    
backup    
database    
t-sql    
 
Contribute