declare @DTSinSERVERName NVARCHAR(50)
declare @DTSname NVARCHAR(50)
set @DTSinSERVERName='shni548' --服务器名字
set @DTSname='PMA-MappingProcess1' --dts名字
declare @RESULT int DECLARE @SQL_STATEMENT NVARCHAR(1000)
SET @SQL_STATEMENT = N'dtsrun /S'+@DTSinSERVERName+' /Usa /Ppassword_1 /N '+@DTSname
exec @RESULT= master..xp_cmdshell @SQL_STATEMENT