<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Fickes &#187; bak</title>
	<atom:link href="http://ericfickes.com/tag/bak/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com</link>
	<description>Independent Contractor for the internet : Adobe and Microsoft technologies</description>
	<lastBuildDate>Wed, 25 Aug 2010 16:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Store your SQL database in the same location as live</title>
		<link>http://ericfickes.com/2009/03/store-your-sql-database-in-the-same-location-as-live/</link>
		<comments>http://ericfickes.com/2009/03/store-your-sql-database-in-the-same-location-as-live/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 06:25:25 +0000</pubDate>
		<dc:creator>Eric Fickes</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[bak]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[paths]]></category>
		<category><![CDATA[restore database]]></category>

		<guid isPermaLink="false">http://ericfickes.com/?p=520</guid>
		<description><![CDATA[I do a lot of moving of databases between development and production servers.  If I&#8217;m lucky, the production server I&#8217;m working with gives me access to DTS services, or even the Database publishing wizard.  More often than not however, the SQLServer I&#8217;m pushing to is locked down in a way that I am required to [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of moving of databases between development and production servers.  If I&#8217;m lucky, the production server I&#8217;m working with gives me access to DTS services, or even the Database publishing wizard.  More often than not however, the SQLServer I&#8217;m pushing to is locked down in a way that I am required to Remote Desktop into the server, then update the database via restore.</p>
<p>So here&#8217;s the tip.  When you&#8217;re only means of updating a remote SQLServer database is by physically restoring the database, do your best to mirror the product server&#8217;s database location on your development machine.  Check out this screenshot, and you&#8217;ll see what I mean</p>
<div id="attachment_521" class="wp-caption aligncenter" style="width: 626px"><a href="http://ericfickes.com/wp-content/uploads/2009/03/mssql-backup-tip.png" rel="lightbox[520]"><img class="size-full wp-image-521" title="mssql-backup-tip" src="http://ericfickes.com/wp-content/uploads/2009/03/mssql-backup-tip.png" alt="MSSQL : Restore Files and Filegroups" width="616" height="471" /></a><p class="wp-caption-text">MSSQL : Restore Files and Filegroups</p></div>
<p>The background of this image shows that my production server houses all of it&#8217;s databases at the path <strong>C:\DB\database.mdf</strong>.</p>
<p>The lower right box shows where I keep my databases on my development server<strong>.</strong> Since I do not store any vital data on my C: drive, I&#8217;ve changed the path to <strong>D:\DB</strong>.</p>
<p>While this isn&#8217;t an exact path match, this trick saves me a little bit of time and frustration when restoring a database remotely.  Especially when I have to do it more than a handful of times in the same day.</p>
<p>It&#8217;s assumed you know how to the following  :</p>
<ul>
<li>Back up a SQLServer database</li>
<li>Copy the BAK file to a remote server</li>
<li>Connect remotely to your SQLServer</li>
<li>Restore a Database file from a file ( BAK file )</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ericfickes.com/2009/03/store-your-sql-database-in-the-same-location-as-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
