sql server 調用系統DOS命令

/*Sql Server利用master.dbo.xp_cmdshell執行DOS移動文件命令*/shell

declare @cmd varchar(1000)windows

set @cmd = 'C:\windows\syswow64\cscript.exe D:\script\vbs\check.vbs "'+@revid+'" "'+cast(@useruid as varchar(50))+'"'ui

exec master.dbo.xp_cmdshell @cmd .net

相關文章
相關標籤/搜索