December 12, 2011 at 6:10 am
Hi,
Trying to pass parameters to one ssis package and execute it as below.
Note that I am using one exec per parameter for the same ssis package.
The error is:
'DTSExec' is not recognized as an internal or external command,
operable program or batch file.
NULL
EXEC xp_cmdshell 'DTSExec /SQL "\PackageName" /SERVER "(ServerName)" /SET "\Package.Variables[User::ServerName].Value";"\\servername"'
EXEC xp_cmdshell 'DTSExec /SQL "\PackageName" /SERVER "(MainPath)" /SET "\Package.Variables[User::MainPath].Value";"\d$\foldername"'
EXEC xp_cmdshell 'DTSExec /SQL "\PackageName" /SERVER "(MainPath)" /SET "\Package.Variables[User::FileName].Value";"filename"'
December 12, 2011 at 11:58 pm
Take a look at this thread:
😉
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
December 13, 2011 at 2:33 am
Solved the syntax issue.
Thanks
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply