Windows server 2012中使用SQLBackupAndFTP备份数据库时遇到一个错误:
ERROR:
The server principal "NT AUTHORITY\SYSTEM" is not able to access the
database "xxxx" under the current security context. BACKUP DATABASE is
terminating abnormally.
解决这个错误的方法:
在SQLBackupAndFTP工具里面选择“Advanced backup schedule”按钮,在“Advanced Backup
Schedule” 窗口设置执行Schedule
Job的用户,如下截图所示,你可以设置你的域账号(sysadmin角色)做为执行Schedule Job的用户或者其他具有权限的账号。
Open
the scheduled job with SQLBackupAndFTP software and click on “Advanced
backup schedule” button. At opened “Advanced Backup Schedule” window you
can enter user name to execute the scheduled job in “Run scheduled job
as” field or just click on “Set as Current User / Your personal account”
to use your current windows account. Please remember to save the job to
apply new schedule options. SQLBackupAndFTP will ask you to enter your
password when you save the job.