sql 作业备份数据库

declare @filename nvarchar(100) 
set @filename='E:\localhrbBack\local_back'+convert(char(10),getdate(),112) 
print @filename BACKUP DATABASE [localhrb] 
TO DISK = @filename WITH NOINIT , NOUNLOAD , NAME = N'localhrb', NOSKIP , 
STATS = 10, NOFORMAT

 

你可能感兴趣的:(sql)