我想通过使用窗口计划来安排 SQL Server Express 的每日备份。我可以将我的数据库备份到 D 盘。但是当我尝试将我的数据库备份到 C 盘时。ms sql 向我返回此错误
Msg 3201, Level 16, State 1, Line 3
Cannot open backup device 'C:\inetpub\Project backup Live\LewreDB backup\Wednesday\20120502.bak'. Operating system error 5(failed to retrieve text for this error. Reason: 15105).
Msg 3013, Level 16, State 1, Line 3
BACKUP DATABASE is terminating abnormally.
这是我的查询
DECLARE @pathName NVARCHAR(512)
SET @pathName = 'C:\inetpub\Project backup Live\LewreDB backup\' + DATENAME(DW,GETDATE())+'\'+ Convert(varchar(8), GETDATE(), 112) + '.bak'
BACKUP DATABASE [LEWREDB] TO DISK = @pathName WITH NOFORMAT, NOINIT, NAME = N'db_backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
有没有人遇到过这个问题