Restore to different server | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Restore to different server

If I am restoring a database from a backup file on disk on Server_A to a database on Server_B, in the restore syntax do I need to specify the "with move" clause if the data and log files as backed up on Server_A are going to be restored into differently named directories on Server_B?
Yes and before that run RESTORE FILELISTONLY to get logical filenames and path.<br />BOL is your best friend [<img src=’/community/emoticons/emotion-1.gif’ alt=’:)‘ />].<br /><br /><hr noshade size="1"><b>Satya SKJ</b><br />Moderator<br /<a target="_blank" href=http://www.SQL-Server-Performance.Com/forum>http://www.SQL-Server-Performance.Com/forum</a><br /><center><font color="teal"><font size="1">This posting is provided “AS IS” with no rights for the sake of <i>knowledge sharing.</i></font id="size1"></font id="teal"></center>
Just curious, do the data files and such on the originating server remain<br />usable after the restore/move to the destination server? That is, I am creating a<br />backup of production for testing, and I of course want my production database<br />to remain.<br /><br /><br /><blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by satya</i><br /><br />Yes and before that run RESTORE FILELISTONLY to get logical filenames and path.<br />BOL is your best friend [<img src=’/community/emoticons/emotion-1.gif’ alt=’:)‘ />].<br /><br /><hr noshade size="1"><b>Satya SKJ</b><br />Moderator<br /<a target="_blank" href=http://www.SQL-Server-Performance.Com/forum>http://www.SQL-Server-Performance.Com/forum</a><br /><center><font color="teal"><font size="1">This posting is provided “AS IS” with no rights for the sake of <i>knowledge sharing.</i></font id="size1"></font id="teal"></center><br /><hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Yes the files will be usable and if you still need your testing database then you may restore live database as another database. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS” with no rights for the sake of knowledge sharing.
]]>