The Microsoft App-V Team Blog

The official blog for Microsoft Application Virtualization

App-V database jobs fail with error - “Executed as user dbo. The server principal “sa” is not able to access the database under the current security context. [SQL State 08004] error 916”.

App-V database jobs fail with error - “Executed as user dbo. The server principal “sa” is not able to access the database under the current security context. [SQL State 08004] error 916”.

  • Comments 1
  • Likes

hotfixHere’s one more KB article we just published today. This one talks about an issue where App-V database jobs fail if you have the wrong DB selected I the SQL Server Jobs configuration:

=====

Symptoms

The App-V Management Server installation creates database jobs in the SQL jobs section. When one of the database jobs is executed, the job fails with the error message:
“Executed as user dbo. The server principal “sa” is not able to access the database under the current security context. [SQL State 08004] error 916”.

Cause

The correct database is not selected in the SQL Server jobs configuration.

Resolution

1. Open SQL Management Studio.
2. Navigate to the SQL Server Agent\Jobs node in Object Explorer.
3. Open “Properties” for the Job.
4. Select the Page for “Steps” in the left pane.
5. Select “Edit” and change the database name to the App-V Database being used. (e.g. APPVIRT).

=====

For the most current version of this article please see the following:

2597203: App-V database jobs fail with error - “Executed as user dbo. The server principal “sa” is not able to access the database under the current security context. [SQL State 08004] error 916”.

J.C. Hornbeck | System Center Knowledge Engineer

App-V Team blog: http://blogs.technet.com/appv/
AVIcode Team blog: http://blogs.technet.com/b/avicode
ConfigMgr Support Team blog: http://blogs.technet.com/configurationmgr/
DPM Team blog: http://blogs.technet.com/dpm/
MED-V Team blog: http://blogs.technet.com/medv/
OOB Support Team blog: http://blogs.technet.com/oob/
Opalis Team blog: http://blogs.technet.com/opalis
Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
OpsMgr Support Team blog: http://blogs.technet.com/operationsmgr/
SCMDM Support Team blog: http://blogs.technet.com/mdm/
SCVMM Team blog: http://blogs.technet.com/scvmm
Server App-V Team blog: http://blogs.technet.com/b/serverappv
Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center Essentials Team blog: http://blogs.technet.com/b/systemcenteressentials
WSUS Support Team blog: http://blogs.technet.com/sus/

clip_image001 clip_image002

Comments
Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment