I am trying to restore a .bak
file in SQL Server 2008 but I am facing some problem please help
This is my query
RESTORE DATABASE Dinesh
FROM DISK = 'E:\MDFFiles\dbdinesh.bak'
WITH MOVE 'schoolschool' TO 'D:MDFFiles\Dinesh.mdf',
MOVE 'schoolschool' TO 'D:MDFFiles\Dinesh.mdf'
I am getting error
Cannot open backup device 'E:\MDFFiles\dbdinesh.bak'. Operating system error 21 (The device is not ready.).
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
E
is a network drive mapped under your account, this will not work. – Damien_The_UnbelieverD:
- it's not optional. If you don't then your next question after working out why your server can't access the .bak file will be 'Why won't this restore where I want it to?' ;) – Steve Pettifer