SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 DB restore
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dolphin123
Yak Posting Veteran

USA
73 Posts

Posted - 01/16/2013 :  11:47:21  Show Profile  Reply with Quote
Hi,

A backup I am trying to restore has 1 mdf file and 85 ndf files.
The server I am trying to restore doesn't have enough space in the default location.

I can use the following to change the path. Do I have to use 85 move lines to create the script or is there way I can specify one place for all ndf files?

Thanks for your help!



restore database DB
from disk='D:\Folder\DBBACK_0917.bak' 
WITH MOVE 'BBACK_Data' TO 'D:\MSSQL\DATA\BBACK.mdf',
MOVE 'BBACK_Log' TO 'D:\MSSQL\DATA\BBACK_1.ldf',
replace, recovery, stats=5, maxtransfersize=1048576

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 01/16/2013 :  21:38:49  Show Profile  Reply with Quote
You can dynamically point it to same drive.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000