<?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>Data Analysts, Data Trending, Reporting &#187; Restoring .bak File</title>
	<atom:link href="http://datamart.org/category/restoring-bak-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://datamart.org</link>
	<description>Make Informed Decisions</description>
	<lastBuildDate>Thu, 17 May 2012 11:01:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Restore backup of database (.bak) using Sql Server 2005</title>
		<link>http://datamart.org/2009/06/10/restore-backup-of-database-bak-using-sql-server-2005/</link>
		<comments>http://datamart.org/2009/06/10/restore-backup-of-database-bak-using-sql-server-2005/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 14:23:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Restoring .bak File]]></category>
		<category><![CDATA[Sql Server 2005]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=275</guid>
		<description><![CDATA[If you intend to create a back up of your database in Server A and restore it on a Server B, here&#8217;s how to go about it. Create a .bak file (Open SSMS &#62; Database &#62; Right Click your database &#62; Tasks &#62; BackUp &#62; Specify the destination). To do it using script, check my [...]]]></description>
			<content:encoded><![CDATA[<p>If you intend to create a back up of your database in Server A and restore it on a Server B, here&#8217;s how to go about it. Create a .bak file (Open SSMS &gt; Database &gt; Right Click your database &gt; Tasks &gt; BackUp &gt; Specify the destination).</p>
<p>To do it using script, check my blog over <a href="http://www.sqlservercurry.com/2008/01/how-to-back-up-database-using-script-in.html"><span style="color: #7a3254;">here</span></a>.</p>
<p>Once the .bak is created, copy this file from Server A to a Server B. We will assume that the file has been copied at the location &#8221;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\&#8221; at Server B. It can any location that you desire.</p>
<p><strong>How to restore the .bak file</strong></p>
<p>Use this query:</p>
<p>RESTORE DATABASE [SouthWind]<br />
FROM DISK = &#8216;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\South.BAK&#8217;<br />
WITH REPLACE,<br />
MOVE &#8216;SouthWind_Data&#8217; TO &#8216;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\SouthWind_Data.MDF&#8217;,<br />
MOVE &#8216;SouthWind_Log&#8217; TO &#8216;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\SouthWind_Log.LDF&#8217;</p>
<p>where FromDisk is where the .bak file is kept on Server B and MOVE specifies the location of the data and log file.</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2009/06/10/restore-backup-of-database-bak-using-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

