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
时间: 2024-11-05 18:58:37