I am getting below error during restoration of my backup data in SQL2008R2
Msg 3201, Level 16, State 2, Line 1 Cannot open backup device 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\123.bak'. Operating system error 2(The system cannot find the file specified.). Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally.
I have tried below mentioned suggestion got from Google and other web site.
- user rights of login user (given administrator privilege to sql login user on harddisk drive)
- check database path
- patch updated as suggested from the Microsoft site.
- install SQL2014 on another systems and try same thing but still getting same error. 5.check my database which is i have taken backup.
- restore this backup file from the graphical mode and it is restoring successful without any error.
Please help me i have to write a C# program for restore backup database in SQL.
123.bakin C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\? - Zohar Peleddirand then paste the full name of the backup file, including path. If it exists - and you have access to it - you will see its properties in thediroutput. If either is false, there will be an error. - Roger Wolf