Can not backup using the GUI, VDI error 1000
tonycara
Posts: 4
I am trying to use the GUI to back up my databases. The user I am running under is a Local Admin of the machine. I keep getting the error below when I try to run a backup:
VDI error 1000: Failed to create virtual device. Check that the SQL Server instance you are trying to connect to is running.
Error code: (-2139684859: Failed to create security environment.)
If I change the service account to Domain Admin it runs fine. I looked under all directories to verify Domain Admins does not have elevated permissions over Local Admins. I also looked into the Local Security Policy to verify that Domain Admins was not granted any extra privleges. What can I do? Are there other permissions I need to check?
VDI error 1000: Failed to create virtual device. Check that the SQL Server instance you are trying to connect to is running.
Error code: (-2139684859: Failed to create security environment.)
If I change the service account to Domain Admin it runs fine. I looked under all directories to verify Domain Admins does not have elevated permissions over Local Admins. I also looked into the Local Security Policy to verify that Domain Admins was not granted any extra privleges. What can I do? Are there other permissions I need to check?
Comments
By service account, are you referring to the SQL Backup Agent service account? This service's startup account needs to be an account that has the SQL Server sysadmin fixed server role assigned to it.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
By Service Account I am refering to the SQL Backup Agent Service. This account does have Sys admin to SQL.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
The backup library runs under the priviliges of the logged-on user (if using the cmd line app) or the SQL Backup Agent service user (if using the extended stored procedure).
I don't know the details of how the backup library determines the SQL Server service startup user.
Running regmon shows that SQL Backup accesses the following keys:
HKLM\Software\Microsoft\MSSQLServer\Setup\SQLDataRoot
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SAMLIB.dll
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SAMLIB.dll
The last 2 entries were not found on my workstation, but the backup proceeds.
Running a filemon at the point of your error indicates that SQL Backup accesses the following files:
C:\Windows\system32\samlib.dll
C:\Windows\system32\ntmarta.dll
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8