<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use PowerShell to Work with Analysis Service Database Backups</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/30/use-powershell-to-work-with-analysis-service-database-backups.aspx</link><description>Summary : Learn how to use Windows PowerShell to work with Microsoft SQL Server Analysis Service database backups.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Work with Analysis Service Database Backups</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/30/use-powershell-to-work-with-analysis-service-database-backups.aspx#3521460</link><pubDate>Thu, 20 Sep 2012 20:02:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3521460</guid><dc:creator>NTornese</dc:creator><description>&lt;p&gt;Nice script. Has worked well for me until today when I came across a database where the Name and ID didn&amp;#39;t match. Here is how I fixed it:&lt;/p&gt;
&lt;p&gt;Replaced this line: &amp;nbsp; $DB=$server.databases.item($Database)&lt;/p&gt;
&lt;p&gt;With this line: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$DB=$server.databases.item($Database.ID)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3521460" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Work with Analysis Service Database Backups</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/30/use-powershell-to-work-with-analysis-service-database-backups.aspx#3432565</link><pubDate>Tue, 31 May 2011 15:48:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3432565</guid><dc:creator>MAK</dc:creator><description>&lt;p&gt;Klause! You are obsolutely right. I should have added statements like this at the end.&lt;/p&gt;
&lt;p&gt;If ($? -eq $False)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Throw &amp;quot;Backup did not complete successfully&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;EXIT&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3432565" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Work with Analysis Service Database Backups</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/30/use-powershell-to-work-with-analysis-service-database-backups.aspx#3432566</link><pubDate>Tue, 31 May 2011 15:48:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3432566</guid><dc:creator>MAK</dc:creator><description>&lt;p&gt;Klause! You are obsolutely right. I should have added statements like this at the end.&lt;/p&gt;
&lt;p&gt;If ($? -eq $False)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Throw &amp;quot;Backup did not complete successfully&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;EXIT&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3432566" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Work with Analysis Service Database Backups</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/30/use-powershell-to-work-with-analysis-service-database-backups.aspx#3432316</link><pubDate>Mon, 30 May 2011 08:06:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3432316</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Great article, the MAK!&lt;/p&gt;
&lt;p&gt;Apart of the backup part it is a good example of error handling in the context of a backup task that fits into my &amp;quot;credo&amp;quot;: Expect errors to happen!&lt;/p&gt;
&lt;p&gt;kind regards, Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3432316" width="1" height="1"&gt;</description></item></channel></rss>