Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Can I restore part of the database to a mapped drive due to disk space issue ?


Can I restore part of the database to a mapped drive due to disk space issue ?

Author
Message
mw112009
mw112009
Say Hey Kid
Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)Say Hey Kid (677 reputation)

Group: General Forum Members
Points: 677 Visits: 861
Hi
I have a backup file in a portable hard drive directly attached to the server ( one that has Sql sever )
I am going to do a restore using the following command:

restore database NGDEVL
from disk = N'R:\NGDVLBK12032010' -- assumes the file is local - Ask Dave for the path of the file.
with file = 1,
move 'NextGen_System_Data' to 'M:\SQL Data Files DBI02\MSSQL.4\MSSQL\Data\NGDevl_System_Data.mdf',
move 'NextGen_Core_Data_1' to 'X:\Data\NGDevl_Core_Data_1.ndf',
move 'NextGen_Index_1' to 'M:\SQL Data Files DBI02\MSSQL.4\MSSQL\Data\NGDevl_Index_1.ndf',
move 'NextGen_Log' to 'N:\SQL Log Files DBI02\NGDevl_Log.ldf',
recovery,
stats = 10;

Points to note:
R: points to the drive letter assigned to the portable hard drive.
M: refers to the drive that has Sql server.
x: refers to a mapped drive in another server.

Here is my question:
Will the RESTORE work with mapped drives ( where the actual drive sits in another server )
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47415 Visits: 44405
No. SQL has a number of requirements for drives for data files, the network protocol doesn't meet them.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Ray Mond
Ray Mond
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 1542
Using SQL Virtual Restore may be another option if space is limited. Basically, you can mount live databases from backup sets without actually having to restore the original data and log files.

Ray Mond
Get a SQL Size 2.0 single-instance license for FREE
Claim one here!
happycat59
happycat59
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3566 Visits: 3113
SQL Server can be configured using a trace flag to allow the use of network drives. Trace flag 1807 bypasses SQL Servers checks for network bases drive.

There are reasons that Microsoft implemented the standard checks that normally stop you using network drives for database files. These are because SQL Server is expected disk drives to, for instances, actually garentee that data is written when the drive (and associated firmware etc) says that data has been written. You run the risk of corruption occurring in you database if you do use network drives.

For more information, have a read of http://support.microsoft.com/kb/304261. It discusses the issues and you can then make an informed decision on whether to use this trace flag.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search