Hi,
I have stored procedure that called the dtsrun.exe but the command-line does not overwrite my global variables.
declare @cmd varchar(50)
set @cmd = 'DTSRun /S "(local)" /U "user" /P "pass" /N "test" /A "one":"3"="1" /A "two":"3"="2" /W "0"'
exec master..xp_cmdshell @cmd
I want to be able to pass in parameters to the DTS Package, I'm sure the "/A" option will let me pass any value to the global variables that I set up for my DTS Package, but for some reason my DTS package is not taking these parameters. It does overwrite the values of the global variables in my DTS package.
Any idea why this is happening ?
Thanks,
Hang
I have stored procedure that called the dtsrun.exe but the command-line does not overwrite my global variables.
declare @cmd varchar(50)
set @cmd = 'DTSRun /S "(local)" /U "user" /P "pass" /N "test" /A "one":"3"="1" /A "two":"3"="2" /W "0"'
exec master..xp_cmdshell @cmd
I want to be able to pass in parameters to the DTS Package, I'm sure the "/A" option will let me pass any value to the global variables that I set up for my DTS Package, but for some reason my DTS package is not taking these parameters. It does overwrite the values of the global variables in my DTS package.
Any idea why this is happening ?
Thanks,
Hang