无法备份收到错误消息 3201,级别 16,状态 1,第 1 行

Can not able to take back up get error Msg 3201, Level 16, State 1, Line 1

我正在练习使用 Dynamic SQL 创建程序来备份除系统数据库之外的所有数据库我的程序编译成功但是当我 运行 它时我得到每个数据库的错误

Msg 3201, Level 16, State 1, Line 1 Cannot open backup device 'F:\DHAVAL_BACKUP_DEMO\itmusket_StudentApp_2015_05_31_10:27:07.BAK'. Operating system error 123(The filename, directory name, or volume label syntax is incorrect.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally.

我也参考this

更改了我的默认数据库备份路径

这是我的数据库设置快照

请给我建议解决这个问题的方法..

带有:的文件名无效,将它们更改为;

@SQL = '.....' + REPLACE(@BackupPath, ':', ';') + '....'