 




<?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: Creating a Sequence of Transaction Log Backups</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/creating-a-sequence-of-transaction-log-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-sequence-of-transaction-log-backups/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 02:14:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mistermac</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creating-a-sequence-of-transaction-log-backups/#comment-49928</link>
		<dc:creator>mistermac</dc:creator>
		<pubDate>Thu, 20 May 2004 23:23:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-49928</guid>
		<description><![CDATA[I still think Maint Plans are a pretty good, quick and dirty method with some (not all) flexibility.  After all, the wizard simply generates a scheduled job like this:

EXECUTE master.dbo.xp_sqlmaint N&#039;-PlanName MyUserDBMaintPlan -Rpt &quot;..someLocalLogPathDBMP--UserDBs_LogBackup.txt&quot; -DelTxtRpt 1WEEKS -WriteHistory  -VrfyBackup -BkUpMedia DISK -BkUpLog &quot;F:SQLBACKUP&quot; -DelBkUps 4DAYS -CrBkSubDir -BkExt &quot;TRN&quot;&#039;

... which creates log dumps that look like this:
...
MyDB_tlog_200405201700.TRN
MyDB_tlog_200405201800.TRN
...


However, if you need more flexibility in the naming of the dump file (or other criteria), I&#039;d suggest creating a single proc that&#039;s scheduled every hour to do the backups.  If it&#039;s the first log dump of the day (based on a datediff check with getdate() or perhaps based on a query of the last full backup time), init the backup file; otherwise, append.

Good luck...
]]></description>
		<content:encoded><![CDATA[<p>I still think Maint Plans are a pretty good, quick and dirty method with some (not all) flexibility.  After all, the wizard simply generates a scheduled job like this:</p>
<p>EXECUTE master.dbo.xp_sqlmaint N&#8217;-PlanName MyUserDBMaintPlan -Rpt &#8220;..someLocalLogPathDBMP&#8211;UserDBs_LogBackup.txt&#8221; -DelTxtRpt 1WEEKS -WriteHistory  -VrfyBackup -BkUpMedia DISK -BkUpLog &#8220;F:SQLBACKUP&#8221; -DelBkUps 4DAYS -CrBkSubDir -BkExt &#8220;TRN&#8221;&#8216;</p>
<p>&#8230; which creates log dumps that look like this:<br />
&#8230;<br />
MyDB_tlog_200405201700.TRN<br />
MyDB_tlog_200405201800.TRN<br />
&#8230;</p>
<p>However, if you need more flexibility in the naming of the dump file (or other criteria), I&#8217;d suggest creating a single proc that&#8217;s scheduled every hour to do the backups.  If it&#8217;s the first log dump of the day (based on a datediff check with getdate() or perhaps based on a query of the last full backup time), init the backup file; otherwise, append.</p>
<p>Good luck&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/8 queries in 0.035 seconds using memcached
Object Caching 269/270 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 03:54:38 -->