<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Maintenance on sigtar.com</title>
		<link>https://sigtar.com/tags/maintenance/</link>
		<description>Recent content in Maintenance on sigtar.com</description>
		<generator>Hugo</generator>
		<language>en-nz</language>
		
		
		
		
			<lastBuildDate>Thu, 26 Jun 2014 00:00:00 +1200</lastBuildDate>
		
			<atom:link href="https://sigtar.com/tags/maintenance/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SQL Express - Backup Plan</title>
				<link>https://sigtar.com/2014/06/26/sql-express-backup-plan/</link>
				<pubDate>Thu, 26 Jun 2014 00:00:00 +1200</pubDate>
				<guid>https://sigtar.com/2014/06/26/sql-express-backup-plan/</guid>
				<description>&lt;p&gt;SQL express doesn&amp;rsquo;t have the luxury of SQL maintenance plans, but you can still write a SQL script to dump a database to a particular location and run it via task scheduler on a daily basis.&lt;/p&gt;&#xA;&lt;p&gt;Create SQL query and save it to a particular location&amp;hellip; (NightlyBackup.sql)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;DECLARE @pathName NVARCHAR(512)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;SET @pathName = &amp;lsquo;&lt;em&gt;D:\SQL Backup\database_&lt;/em&gt;&amp;rsquo; + Convert(varchar(8), GETDATE(), 112) + &amp;lsquo;.bak&amp;rsquo;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;BACKUP DATABASE [&lt;em&gt;database&lt;/em&gt;] TO DISK = @pathName WITH NOFORMAT, NOINIT, NAME = N&amp;rsquo;db_backup&amp;rsquo;, SKIP, NOREWIND, NOUNLOAD, STATS = 10&lt;/strong&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
