<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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 Backup All User Databases</title><link>http://blogs.msdn.com/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx</link><description>This script will back up all user databases - you need to change the BWOODY1\SQL2K8 part to your server\instance name, and of course, you should only run this on a test system until you completely understand it. Unfortunately, the SQL Server PowerShell</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Use PowerShell to Backup All User Databases</title><link>http://blogs.msdn.com/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx#9803861</link><pubDate>Thu, 25 Jun 2009 19:46:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9803861</guid><dc:creator>cmille19</dc:creator><description>&lt;p&gt;You need to add loading the SMOExtended assembly to your script to support SMO 10.0. The backup class was moved from the SMO assembly in 9.0 to the SMOExtended assembly in 10.0:&lt;/p&gt;
&lt;p&gt;[reflection.assembly]::LoadWithPartialName('Microsoft.SqlServer.SMOExtended') &amp;gt; $null&lt;/p&gt;</description></item><item><title>re: Use PowerShell to Backup All User Databases</title><link>http://blogs.msdn.com/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx#9803880</link><pubDate>Thu, 25 Jun 2009 20:01:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9803880</guid><dc:creator>Buck Woody</dc:creator><description>&lt;p&gt;@cmille19 - Thanks for that!&lt;/p&gt;</description></item><item><title>re: Use PowerShell to Backup All User Databases</title><link>http://blogs.msdn.com/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx#9835742</link><pubDate>Thu, 16 Jul 2009 18:19:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9835742</guid><dc:creator>SQL 2k8 Data Architect</dc:creator><description>&lt;p&gt;Buck,&lt;/p&gt;
&lt;p&gt;I kept on having problems with the script trying to backup my dbs that are in simple recovery mode. &amp;nbsp;I tried several different things and finally found this to work:&lt;/p&gt;
&lt;p&gt;On the If loop for the transaction logs I had to swap out the &amp;quot;-ne&amp;quot; for &amp;quot;-notmatch&amp;quot;&lt;/p&gt;
&lt;p&gt;Before:&lt;/p&gt;
&lt;p&gt;if ($db.DatabaseOptions.RecoveryModel -ne 'Simple') {&lt;/p&gt;
&lt;p&gt;After:&lt;/p&gt;
&lt;p&gt;if ($db.DatabaseOptions.RecoveryModel -notmatch &amp;quot;Simple&amp;quot;) {&lt;/p&gt;
&lt;p&gt;Now it skips the dbs in simple mode every time. &amp;nbsp;I don't know if anyone else was having this problem but my setup is SQL 2008 Dev. SP1 running on Windows 7 RC (7100).&lt;/p&gt;
&lt;p&gt;Hope this helps if anyone else was stuck like me.&lt;/p&gt;</description></item><item><title>re: Use PowerShell to Backup All User Databases</title><link>http://blogs.msdn.com/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx#9857310</link><pubDate>Tue, 04 Aug 2009 20:56:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9857310</guid><dc:creator>Woodster</dc:creator><description>&lt;p&gt;Great script. Simple and effective. Thanks for sharing.&lt;/p&gt;</description></item></channel></rss>