Error while restoring sql database in microsoft sql server 2012

I found below error while restoring a database to Microsoft SQL Server 2012.
System.Data.SqlClient.SqlError: The operating system returned the error 5(Access is denied.)

I solved this problem by doing below step:
In restore window, from left side pane click on Files
Then in properties please ensure that “Relocate all files to folder” is checked.

Try this, i resolved my issue by doing this.

Leave a Comment