I need to create a backup of my database and then restore the same on my PC. I am copying my backup file to another folder( Eg: 'Example' ) and setting the property as 'Share with Nobody' to the folder( Right click on the 'Example' folder->Share with->Nobody ). If I try to perform a restore operation after this, I am getting below Access denied error.
SQL Error : [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open backup device 'C:\Temp\Example\Example.bak'. Operating system error 5(Access is denied.).
This scenario is reproduced when we ran the query
RESTORE VERIFYONLY FROM DISK = 'C:\Temp\Example\Example.bak'