<?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 2005 Compressed Backup</title>
	<atom:link href="http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/</link>
	<description>A blog on .Net and SQL Server</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:44:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jochen</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-16036</link>
		<dc:creator>Jochen</dc:creator>
		<pubDate>Tue, 13 Dec 2011 16:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-16036</guid>
		<description>Hi,

how can i get a result set containing a list of the database and log files contained in the backup set?

Is it possible to get something similar like 
&quot;RESTORE FILELISTONLY FROM  &quot;?

Kind regards,
Jochen</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>how can i get a result set containing a list of the database and log files contained in the backup set?</p>
<p>Is it possible to get something similar like<br />
&#8220;RESTORE FILELISTONLY FROM  &#8220;?</p>
<p>Kind regards,<br />
Jochen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram Sridharan</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15736</link>
		<dc:creator>Vikram Sridharan</dc:creator>
		<pubDate>Sun, 24 Jul 2011 13:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15736</guid>
		<description>Hey Clay,

It&#039;s been some time ! Wanted to say thanks again, we have rolled this out to 3000 distributed DBs, we had to package .net framework along with it as it was missing on most computers.

Other than 200 instances it has worked great and the time and space saving is highly appreciated.

It is currently working for the following versions.
MSDE
SQL Server 2005 Standard Edition
SQL Server 2005 Express Edition

Cheers,
Vikram.</description>
		<content:encoded><![CDATA[<p>Hey Clay,</p>
<p>It&#8217;s been some time ! Wanted to say thanks again, we have rolled this out to 3000 distributed DBs, we had to package .net framework along with it as it was missing on most computers.</p>
<p>Other than 200 instances it has worked great and the time and space saving is highly appreciated.</p>
<p>It is currently working for the following versions.<br />
MSDE<br />
SQL Server 2005 Standard Edition<br />
SQL Server 2005 Express Edition</p>
<p>Cheers,<br />
Vikram.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clay Lenhart</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15627</link>
		<dc:creator>Clay Lenhart</dc:creator>
		<pubDate>Tue, 05 Apr 2011 18:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15627</guid>
		<description>Thanks for the update!</description>
		<content:encoded><![CDATA[<p>Thanks for the update!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram Sridharan</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15626</link>
		<dc:creator>Vikram Sridharan</dc:creator>
		<pubDate>Tue, 05 Apr 2011 13:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15626</guid>
		<description>Hey Clay,

Thought I&#039;d drop you a line, the route my team is planning to take is to write a short sp  to retrieve the local user account, enable windows logon, add the account, take the compressed backup and reverse the above steps.
Its currently under testing, hopefully should work and save close to 200 hours daily :)

Cheers,
Vikram.</description>
		<content:encoded><![CDATA[<p>Hey Clay,</p>
<p>Thought I&#8217;d drop you a line, the route my team is planning to take is to write a short sp  to retrieve the local user account, enable windows logon, add the account, take the compressed backup and reverse the above steps.<br />
Its currently under testing, hopefully should work and save close to 200 hours daily <img src='http://clay.lenharts.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Vikram.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clay Lenhart</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15625</link>
		<dc:creator>Clay Lenhart</dc:creator>
		<pubDate>Thu, 31 Mar 2011 17:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15625</guid>
		<description>Vikram, Thanks!
Unfortunately it uses a SQL Server DLL and it requires Windows authentication for its connection.  
A couple of options are:
Your code could use impersonation to run under a different account.  The accepted answer here has links that show how to do it in .Net code: http://stackoverflow.com/questions/125341/impersonation-in-net
You create a Windows Service that runs under a different user, and your application sends a message to it to start the backup.
Good luck!  Let me know how it goes on.</description>
		<content:encoded><![CDATA[<p>Vikram, Thanks!<br />
Unfortunately it uses a SQL Server DLL and it requires Windows authentication for its connection.<br />
A couple of options are:<br />
Your code could use impersonation to run under a different account.  The accepted answer here has links that show how to do it in .Net code: <a href="http://stackoverflow.com/questions/125341/impersonation-in-net" rel="nofollow">http://stackoverflow.com/questions/125341/impersonation-in-net</a><br />
You create a Windows Service that runs under a different user, and your application sends a message to it to start the backup.<br />
Good luck!  Let me know how it goes on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram Sridharan</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15624</link>
		<dc:creator>Vikram Sridharan</dc:creator>
		<pubDate>Thu, 31 Mar 2011 08:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15624</guid>
		<description>Dear Clay,

Its really a fantastic tool, Thanks so much for it. We have one concern, the application runs on the local user credentials, however the local user does not have privileges on the computer and the application accesses the DB through named user / pass. Mixed mode is disabled. We centrally have all the details and are trying to schedule a backup of the DB for the user everytime he quits the application. Any possibility ? If we are able to figure this out we would roll this out for around 3k SQL 2005 / MSDE databases.

Thanks,
Cheers,
Vikram.</description>
		<content:encoded><![CDATA[<p>Dear Clay,</p>
<p>Its really a fantastic tool, Thanks so much for it. We have one concern, the application runs on the local user credentials, however the local user does not have privileges on the computer and the application accesses the DB through named user / pass. Mixed mode is disabled. We centrally have all the details and are trying to schedule a backup of the DB for the user everytime he quits the application. Any possibility ? If we are able to figure this out we would roll this out for around 3k SQL 2005 / MSDE databases.</p>
<p>Thanks,<br />
Cheers,<br />
Vikram.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clay Lenhart</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15619</link>
		<dc:creator>Clay Lenhart</dc:creator>
		<pubDate>Mon, 31 Jan 2011 20:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15619</guid>
		<description>Roger, 
The tool compresses while you backup.  It doesn&#039;t compress files. To backup a database, run the following command from the DOS prompt:

msbp.exe backup &quot;db(database=model)&quot; &quot;gzip()&quot; &quot;local(path=c:\model.bak.gz)&quot;

More examples are here:
http://mssqlcompressed.sourceforge.net/doc_started.shtml</description>
		<content:encoded><![CDATA[<p>Roger,<br />
The tool compresses while you backup.  It doesn&#8217;t compress files. To backup a database, run the following command from the DOS prompt:</p>
<p>msbp.exe backup &#8220;db(database=model)&#8221; &#8220;gzip()&#8221; &#8220;local(path=c:\model.bak.gz)&#8221;</p>
<p>More examples are here:<br />
<a href="http://mssqlcompressed.sourceforge.net/doc_started.shtml" rel="nofollow">http://mssqlcompressed.sourceforge.net/doc_started.shtml</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15617</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Mon, 31 Jan 2011 06:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15617</guid>
		<description>Hi Clay, Am new to SQL Server 2005 and was wondering if you could help me with your code. I have all the SQL BACKUPS in a folder.eg C:\$user\SSO\Backups~Database\SSO_Sep 20, 10.BAK 
How would i use your code to compress this backup.?</description>
		<content:encoded><![CDATA[<p>Hi Clay, Am new to SQL Server 2005 and was wondering if you could help me with your code. I have all the SQL BACKUPS in a folder.eg C:\$user\SSO\Backups~Database\SSO_Sep 20, 10.BAK<br />
How would i use your code to compress this backup.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15509</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Thu, 02 Sep 2010 04:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15509</guid>
		<description>declare @res varchar(2000)  
set @res=&#039;D:\dump\msbp\MSSQLCompressedBackup-1.2-20100117_x64\msbp.exe restore &quot;local(path=D:\dump\_1_testdb.bak.zip)&quot; &quot;zip64&quot; &quot;db(database=testdb;instancename=INST01;replace=yes;KEEP_REPLICATION;filegroup=primary;MOVE=&#039;&#039;testdb&#039;&#039;TO&#039;&#039;D:\MSSQL\data\testdb.mdf&#039;&#039;;MOVE=&#039;&#039;testdb_log&#039;&#039;TO&#039;&#039;E:\MSSQL\Tranlogs\testdb_log.ldf&#039;&#039;;)&quot;&#039;
print @res
exec master..xp_cmdshell @res</description>
		<content:encoded><![CDATA[<p>declare @res varchar(2000)<br />
set @res=&#8217;D:\dump\msbp\MSSQLCompressedBackup-1.2-20100117_x64\msbp.exe restore &#8220;local(path=D:\dump\_1_testdb.bak.zip)&#8221; &#8220;zip64&#8243; &#8220;db(database=testdb;instancename=INST01;replace=yes;KEEP_REPLICATION;filegroup=primary;MOVE=&#8221;testdb&#8221;TO&#8221;D:\MSSQL\data\testdb.mdf&#8221;;MOVE=&#8221;testdb_log&#8221;TO&#8221;E:\MSSQL\Tranlogs\testdb_log.ldf&#8221;;)&#8221;&#8216;<br />
print @res<br />
exec master..xp_cmdshell @res</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://clay.lenharts.net/blog/2008/06/14/sql-server-2005-compressed-backup/comment-page-2/#comment-15508</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Thu, 02 Sep 2010 04:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=37#comment-15508</guid>
		<description>Hi Clay,
KEEP_REPLICATION option is not working using msbp. , if I create a dummy database ,and restore with KEEP_REPLICATION using msbp , “The backup set holds a backup of a database other than the existing &#039;Adventureworks&#039; database.” Error . I have rowguid columns populated in the database.
If I create a dummy database , and use native back up with keep_replication I am getting rowGUID values after restore 
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Clay,<br />
KEEP_REPLICATION option is not working using msbp. , if I create a dummy database ,and restore with KEEP_REPLICATION using msbp , “The backup set holds a backup of a database other than the existing &#8216;Adventureworks&#8217; database.” Error . I have rowguid columns populated in the database.<br />
If I create a dummy database , and use native back up with keep_replication I am getting rowGUID values after restore<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

