declare @filename nvarchar(100)
set @filename=‘H:/backOrder/‘+ 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‘ print @filename
BACKUP DATABASE [#Order] TO DISK = @filename WITH NOINIT , NOUNLOAD , NAME = N‘bankcomm 备份‘, NOSKIP , STATS = 10, NOFORMAT
时间: 2024-10-02 00:21:37