My .bak
file is the other the local server.
I tried too many different script but unable to successes.
I tried syntax is
RESTORE FILELISTONLY FROM DISK='D:\ERPNewtesting-12022014.bak'
Get the Logicalname from above query and use in below query
RESTORE DATABASE Test FROM DISK='ERPNewtesting-12022014.bak'
WITH
MOVE 'ERPAgrotechBeta' TO 'D:\Pragnesh\Test.mdf',
MOVE 'ERPAgrotechBeta_log' TO 'D:\Pragnesh\Test_log.ldf',
REPLACE,
STATS=10
After executing above query below error is generate.
Msg 3201, Level 16, State 2, Line 3
Cannot open backup device 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ERPNewtesting-12022014.bak'. Operating system error 2(The system cannot find the file specified.).
Msg 3013, Level 16, State 1, Line 3
RESTORE DATABASE is terminating abnormally.
Please help me for this manner
Operating system error 2(The system cannot find the file specified.)
– usr