<?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>Web Programming Answers &#187; Microsoft SQL Server</title>
	<atom:link href="http://www.bogartcomputing.com/web-programming-answers/category/microsoft-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bogartcomputing.com/web-programming-answers</link>
	<description>Joomla Programmer, PHP, Joomla, Zen-Cart, osCommerce, MySQL, CSS, XHTML, Ecommerce, Search Engine Marketing, Web Programming answers, often in their rawest form</description>
	<lastBuildDate>Sun, 20 Jun 2010 19:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Restoring SQL bak for data backed up on a different machine</title>
		<link>http://www.bogartcomputing.com/web-programming-answers/91/restoring-sql-bak-for-data-backed-up-on-a-different-machine/</link>
		<comments>http://www.bogartcomputing.com/web-programming-answers/91/restoring-sql-bak-for-data-backed-up-on-a-different-machine/#comments</comments>
		<pubDate>Wed, 27 Dec 2006 09:56:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.Net programming]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.bogartcomputing.com/web-programming-answers/91/restoring-sql-bak-for-data-backed-up-on-a-different-machine/</guid>
		<description><![CDATA[Â &#8221;the physical file name&#8221; &#8220;may be incorrect&#8221;RESTORE DATABASE DBName FROM DISK = &#8216;C:\mypath\backedUpDb.bak&#8217; WITH MOVE &#8216;backedUpDb_dat&#8217; TO &#8216;C:\mypath\DBName.mdf&#8217;, MOVE &#8216;backedUpDb_log&#8217; TO &#8216;C:\mypath\DBName.ldf&#8217; GO Where DBName is the name the db will have on your local machine backedUpDb.bak is the backup with the wrong physical path backedUpDb_dat and backedUpDb_log are described below mdf and ldf are [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><font color="#0000ff" size="2">Â &#8221;the physical file name&#8221; &#8220;may be incorrect&#8221;</font><font color="#0000ff" size="2"></font><font color="#0000ff" size="2">RESTORE</font><font size="2"> </font><font color="#0000ff" size="2">DATABASE</font><font size="2"> DBName<br />
</font><font color="#0000ff" size="2">FROM</font><font size="2"> </font><font color="#0000ff" size="2">DISK</font><font size="2"> </font><font color="#808080" size="2">=</font><font size="2"> </font><font color="#ff0000" size="2">&#8216;C:\mypath\backedUpDb.bak&#8217;<br />
</font><font color="#0000ff" size="2">WITH</font><font size="2"><br />
MOVE </font><font color="#ff0000" size="2">&#8216;backedUpDb_dat&#8217;</font><font size="2"> </font><font color="#0000ff" size="2">TO</font><font size="2"> </font><font color="#ff0000" size="2">&#8216;C:\mypath\DBName.mdf&#8217;</font><font color="#808080" size="2">,<br />
</font><font size="2">MOVE </font><font color="#ff0000" size="2">&#8216;backedUpDb_log&#8217;</font><font size="2"> </font><font color="#0000ff" size="2">TO</font><font size="2"> </font><font color="#ff0000" size="2">&#8216;C:\mypath\DBName.ldf&#8217;<br />
</font><font size="2">GO</font></p>
<p><font size="2">Where<br />
DBName is the name the db will have on your local machine<br />
backedUpDb.bak is the backup with the wrong physical path<br />
backedUpDb_dat and backedUpDb_log are described below<br />
mdf and ldf are the names and locations you want DBName to have after restoration</font></p>
<p><font size="2">Â Get backedUpDb_dat from:<br />
SQL Enterprise or Management Studio<br />
Databases<br />
Restore Database<br />
To Database [DBName]<br />
From Device: [click ...]<br />
Backup Media<br />
File<br />
Add<br />
Browse to backedUpDb.bak<br />
OK<br />
Select Restore checkbox<br />
Options<br />
The Original Filename is you backedUpDb_dat and backedUpDb_log</font><font size="2">Options<br />
<font size="2" /><font size="2" /><font size="2" /></font><font size="2"></font><font size="2">Â </p>
<p></font>Â </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bogartcomputing.com/web-programming-answers/91/restoring-sql-bak-for-data-backed-up-on-a-different-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
