Udostępnij za pośrednictwem


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”.

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

clip_image001 clip_image002