I recently had a job running on a reporting server that would restore the backups from the production server over the network. I had a system failure and had to rebuild the reporting server and now when I run the restore script I receive the following error. I have attached the job restore script.
Msg 3201, Level 16, State 2, Line 22
Cannot open backup device '\\serv007\r$\SQLBackups\D
Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 22
RESTORE DATABASE is terminating abnormally.