<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SQL Server PowerShell : How to Backup SQL Server Databases Using SMO and PowerShell</title>
	<atom:link href="http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/</link>
	<description>ramblings, discoveries, tutorials on sql server and other database stuff</description>
	<lastBuildDate>Wed, 25 Jan 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mikko Nurmi</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-6044</link>
		<dc:creator>Mikko Nurmi</dc:creator>
		<pubDate>Mon, 02 Jan 2012 14:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-6044</guid>
		<description>Doesn&#039;t work for me, even if I added Stan Littlefield&#039;s extras because I&#039;m using SQL Express 2008 R2.

Came up with: 

Exception calling &quot;SqlBackup&quot; with &quot;1&quot; argument(s): &quot;Backup failed for Server &#039;compname\SQLExpress&#039;. &quot; At \.ps1:45 char:21 +$smoBackup.SqlBackup &lt;&lt;&lt;&lt; ($Server)
    +CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
       +FullyQualifiedErrorID : DotNewMethodException

Anyone have any ideas how to make it work?</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work for me, even if I added Stan Littlefield&#8217;s extras because I&#8217;m using SQL Express 2008 R2.</p>
<p>Came up with: </p>
<p>Exception calling &#8220;SqlBackup&#8221; with &#8220;1&#8243; argument(s): &#8220;Backup failed for Server &#8216;compname\SQLExpress&#8217;. &#8221; At \.ps1:45 char:21 +$smoBackup.SqlBackup &lt;&lt;&lt;&lt; ($Server)<br />
    +CategoryInfo          : NotSpecified: (:) [], MethodInvocationException<br />
       +FullyQualifiedErrorID : DotNewMethodException</p>
<p>Anyone have any ideas how to make it work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Littlefield</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-5897</link>
		<dc:creator>Stan Littlefield</dc:creator>
		<pubDate>Tue, 11 Oct 2011 18:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-5897</guid>
		<description>I came across this. Tried it on SQL Express 2008 R2 - had to reference

$server = New-Object (&quot;Microsoft.SqlServer.Management.Smo.Server&quot;) &quot;(local)\SQLExpress&quot;

and add version 10.0 to

LoadWithPartialName(&quot;Microsoft.SqlServer.SMO, Version=10&quot;)

and it worked as expected. Great post!</description>
		<content:encoded><![CDATA[<p>I came across this. Tried it on SQL Express 2008 R2 &#8211; had to reference</p>
<p>$server = New-Object (&#8220;Microsoft.SqlServer.Management.Smo.Server&#8221;) &#8220;(local)\SQLExpress&#8221;</p>
<p>and add version 10.0 to</p>
<p>LoadWithPartialName(&#8220;Microsoft.SqlServer.SMO, Version=10&#8243;)</p>
<p>and it worked as expected. Great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ardath Moote</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-5855</link>
		<dc:creator>Ardath Moote</dc:creator>
		<pubDate>Fri, 17 Jun 2011 11:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-5855</guid>
		<description>Hi! This is kind of off topic but I need some help from an established blog. Is it difficult to set up your own blog? I&#039;m not very techincal but I can figure things out pretty quick. I&#039;m thinking about making my own but I&#039;m not sure where to start. Do you have any points or suggestions?  Many thanks</description>
		<content:encoded><![CDATA[<p>Hi! This is kind of off topic but I need some help from an established blog. Is it difficult to set up your own blog? I&#8217;m not very techincal but I can figure things out pretty quick. I&#8217;m thinking about making my own but I&#8217;m not sure where to start. Do you have any points or suggestions?  Many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Heiner</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-5847</link>
		<dc:creator>Paul Heiner</dc:creator>
		<pubDate>Mon, 16 May 2011 22:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-5847</guid>
		<description>Thanks for the posting.  How would you do a DBCC CHECKDB first and if passes then backup?   I have the backups working via SQL Agent using powershell.  They read my SLA metadata and either backup up or if CommVault is doing the backup check to confirm backups are happening.
This is phase one.  Phase two of my project to to test the backups.

For some reason my brain is not making the jump of capturing an error on the DBCC CHECKDB and then throwing  an error so that SQL Agent will notify.

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the posting.  How would you do a DBCC CHECKDB first and if passes then backup?   I have the backups working via SQL Agent using powershell.  They read my SLA metadata and either backup up or if CommVault is doing the backup check to confirm backups are happening.<br />
This is phase one.  Phase two of my project to to test the backups.</p>
<p>For some reason my brain is not making the jump of capturing an error on the DBCC CHECKDB and then throwing  an error so that SQL Agent will notify.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashraf</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-5322</link>
		<dc:creator>ashraf</dc:creator>
		<pubDate>Mon, 08 Mar 2010 17:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-5322</guid>
		<description>Great. thanks for the helpful code.</description>
		<content:encoded><![CDATA[<p>Great. thanks for the helpful code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.sqlmusings.com/2009/05/31/how-to-backup-sql-server-databases-using-smo-and-powershell/comment-page-1/#comment-2526</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Thu, 29 Oct 2009 12:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sqlmusings.com/?p=787#comment-2526</guid>
		<description>Excellent article, thanks</description>
		<content:encoded><![CDATA[<p>Excellent article, thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

