sql2005自动备份指令
DECLARE @strPath NVARCHAR(200)set @strPath = convert(NVARCHAR(19),getdate(),120)+'ximeng_we'set @strPath = REPLACE(@strPath, ':' , '.')set @strPath = 'E:\data\' + @strPath + '.bak'BACKUP DATABASE [ximeng_web] TO DISK = @strPath WITH NOINIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT