Solved

Restoring a large database to a mapped drive

Posted on 2010-08-30
12
383 Views
Last Modified: 2012-05-10
Hello,

I need a restore a database of 270GB. The .BAK is about 1GB (there is still alot of open space in the databse). I have mapped the network drive. I have started the SQL server with a account that does have read and write access on the LAN.

I changed the destination of the restored files (DB + LOG) to the Y drive (mapped LAN drive) in SQL management studio.

I get the error "The file "Y:\temp\abraham\db" db is on a network path that is not  supported for database  files.

Can you help me to fix this ?

Abraham
0
Comment
Question by:AbrahamVlok
  • 7
  • 3
12 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 500 total points
ID: 33557545
http://support.microsoft.com/kb/304261
Very strongly not recommended.
_IF_ you insist on pursuing that avenue, "Trace flag 1807 bypasses the check and allows you to configure SQL Server with network-based database files."
0
 

Author Comment

by:AbrahamVlok
ID: 33557592
Hi Razmus,

I do not care about this as I am restoring a database to check settings - it is not running anyhting.

How do I set the trace flag ?

0
 
LVL 30

Assisted Solution

by:Rich Weissler
Rich Weissler earned 500 total points
ID: 33557689
In this case, you'll probably want to stop the sql service, and add the parameter -T1807 to the service executable.

http://technet.microsoft.com/en-us/library/ms187329.aspx
In theory, you should also be able to run it as "DBCC TRACEON (1807, -1);" from a query... but I personally don't run trace flags that way.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:AbrahamVlok
ID: 33557751
I managed to change the tracflag - but still I get the same error.

This traceflag is related to "5110 "File 'file_name' is on a network device not supported for database files."

This is not my error.5110 is related to device problem. I have a path problem.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33557838
Thats exactly the message that Trace flag 1807 is suppose to disable.  Confirm "DBCC TRACESTATUS (1807, -1);" ?
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33557864
Hmm... Also confirm that this instance of SQL is not a cluster?
0
 

Author Comment

by:AbrahamVlok
ID: 33574808
The investigation took too much time, I had to make alternative plans. I found an external USB disk and performed the restore to that.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33575819
I'm sorry the investigation was taking so much time.  

Were you able to confirm that the SQL Server wasn't part of a cluster, and confirm that the DBCC TRACESTATUS (1807,-1) was reporting positively?
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33577594
The poster may have taken excessive time on the issue, but the question asked was answered.  Additional troubleshooting information which might have assisted in the eventual successful resolution was not provided.  (Or, if the server is part of a cluster, which has not been answered, would have concluded that the solution he desired is no possible.)
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 33582544
My biased recommendation is #3, with the answer being http:#33557545
Comments below that were attempts to assist the user in implementing the answer.

The answer gives the correct answer on how to accomplish the task requested, and the link provided the documentation from Microsoft with further information about the reason the option is not recommended, risks associated, and circumstances under which the one solution may still not work as desired.  The final solution implemented, namely use of supplemental storage directly attached to the database server, is also actually in compliance with the suggestion in the answer -- that the one solution to the question as posed is very strongly not recommended.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server Degrading on Write 13 70
Record open by another user 6 64
SQL Query with Sum and Detail rows 2 54
Error in SSIS while executing  - Potential data loss 4 31
Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question