Hello,
I have a stotred procedure which grabs the parameter value from a table in a loop. I need to execute dts package and pass this parameter to it. I created a global variable and used the following sql statement
declare @run_me varchar(1000)
set @run_me = 'dtsrun /S devsql2k /U doctracking /P logjam /N agingreporttest /A "processingcenter:8=riverview1"'
EXEC devsql2k.master..xp_cmdshell @run_me
What am I doing wrong. How does DTS assign the parameter value to its global variable?
I am using SQL 2000.
Thanks
I have a stotred procedure which grabs the parameter value from a table in a loop. I need to execute dts package and pass this parameter to it. I created a global variable and used the following sql statement
declare @run_me varchar(1000)
set @run_me = 'dtsrun /S devsql2k /U doctracking /P logjam /N agingreporttest /A "processingcenter:8=riverview1"'
EXEC devsql2k.master..xp_cmdshell @run_me
What am I doing wrong. How does DTS assign the parameter value to its global variable?
I am using SQL 2000.
Thanks