declare @cmd
set @cmd='copy myfile_'+convert(char(10),getdate(),120)+'.txt RuningTxtName.txt'
exec xp_cmdshell @cmd
把上面代码放到你的DTS的新的SQL任务中,并要求在转换前运行,就行了。
declare @cmd
set @cmd='copy myfile_'+convert(char(10),getdate(),120)+'.txt RuningTxtName.txt'
exec xp_cmdshell @cmd
把上面代码放到你的DTS的新的SQL任务中,并要求在转换前运行,就行了。