operating system error 5(access is denied.)

Usually we will encounter this error when we are trying to place the backup files(.BAK) in another windows server or in a network shared folder. This issue comes up because of permission issues. 

operating system error 5(access is denied.)

We need add below two accounts to that particular folder or drive(to where we are placing .BAK files) security path and give FULL permissions.

SQL Server Database Engine Service Account

SQL Server Agent Service Account

Sometimes even above approach will not work, in that case run SSMS in "run as Administrator mode" and run the command.




Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server