How can we help you today? How can we help you today?

Restore Permissions for Log Shipping

When the backup job for log shipping runs on the source DB, I seem to have no issues. But when the restore runs on the backup DB, I get error error 890. I setup a new user in AD and gave them sysadmin rights but I cant tell if that is enough or if the new user is even used to perform the restore.
Nix
0

Comments

7 comments

  • Nix
    I notice that the initial full restore that is done when the log shipping job is created works just fine because it is performed by the SA or whatever user I put in there initially but all the incremental restores after that were performed by the NT AUTHORITY\NETWORK SERVICE user. Why dose it change users and how do I give that user right to do restores to the destination DB?
    Nix
    0
  • petey
    Does the owner of the SQL Server job that performs the restore have rights to restore transaction logs on that database? Could you please check, using SSMS, who is the owner of the job?

    Thanks.
    petey
    0
  • Nix
    It seems to be working now!!! I checked the job and the owner was the AD account that I created for this test but the NT AUTHORITY\NETWORK SERVICE user was still performing the incremental transaction restores. I thought I gave that users sysadmin rights but when I double checked it today I noticed I gave it setupadmin rights instead. After fixing that change things seem to start working. Is it normal to have to give NT AUTHORITY\NETWORK SERVICE user sysadmin rights to do log shipping or am I doing something wrong? I am new to SQL administration so I apologize if this is a dumb question.
    Nix
    0
  • petey
    What is the account that is used to run the SQL Backup Agent service? You can check via using the Windows Service Manager application.
    petey
    0
  • Nix
    It was the one I created called SQLBackup.
    Nix
    0
  • petey
    but the NT AUTHORITY\NETWORK SERVICE user was still performing the incremental transaction restores.
    How did you determine this?

    Thanks.
    petey
    0
  • Nix
    When I looked at the Activity History for that DB in SQL Backup it would show that user account as the user name that performed the task.
    Nix
    0

Add comment

Please sign in to leave a comment.