SQL Server备份脚本
时间:2021-07-01 10:21:17
帮助过:3人阅读
@date varchar( 17),@path varchar( 100)
set @date =replace(( replace((replace ((select
CONVERT(varchar (17), getdate(),120 )),‘-‘, ‘‘)),‘ ‘ ,‘‘)), ‘:‘,‘‘ )
select @date
set @path =‘f:\backup\‘+ ‘erp‘+@date +‘.bak‘
select @path
backup database érp to disk=@path with initSQL Server备份脚本
标签: