标签:
declare @name varchar(250)
set @name=‘I:\dydb_n\dydb_n‘+convert(varchar(50),getdate(),112)+ left(right(convert(varchar(50),getdate(),120),8),2) + substring(right(convert(varchar(50),getdate(),120),8),4,2) + ‘.bak‘
BACKUP DATABASE [dydb_n] TO
DISK = @name
WITH NOFORMAT, NOINIT,
NAME = N‘dydb_n-完整 数据库 备份‘,
SKIP, NOREWIND, NOUNLOAD
标签:
原文地址:http://www.cnblogs.com/szlixin/p/4186811.html