DECLARE @strPath NVARCHAR(200)


set @strPath = convert(NVARCHAR(19),getdate(),120)
set @strPath = REPLACE(@strPath, ':' , '.')
set @strPath = '备份路径'+'CopyBSS'+@strPath + '.bak'

backup database 数据库名 to disk = @strPath
 with noinit , nounload , noskip , STATS = 10, NOFORMAT