我有一个应用程序正在通过网络执行数据库的 SQL 备份。使用 SQL 2008 SP2 会产生以下错误。
An error has occured and the operation could not be completed successfully.
CREATE DATABASE permission denied in the database 'master'
VERIFY DATABASE is terminating abnormally.
10 percent processed.
...
Processed 68272 pages for database 'Db01', file 'Db01' on file 1.
100 percent processed.
Processed 6 pages for database 'Db01', file 'Db01_log' on file 1.
BACKUP DATABASE successfully processed 68278 pages in 4.276 seconds
Please retry.
然而,备份文件已创建,但该消息会误导用户,他们总是认为该过程未成功完成。
sql server 在网络服务服务下运行,我尝试将网络服务的权限分配给主数据库,但它仍然产生错误。
使用 SQL Server Management Studio 进行备份并验证备份工作正常且没有错误。
如何防止错误发生?