I am using given command line to execute ssis packages in sp in sql server.
SET @dtsExecCmd = @DTSEXECCMDPATH + ltrim(rtrim(@ssisPkgFilePath)) + '" /CONFIGFILE "' + ltrim(rtrim(@ssisCommonConfigPath)) + '"'
EXEC @result = master..xp_cmdshell @dtsExecCmd
where,
@DTSEXECCMDPATH = 'G:\"Program Files (x86)"\"Microsoft SQL Server"\110\DTS\Binn\dtexec /F "'
@ssisPkgFilePath = '\\dtsx package path\package.dtsx'
@ssisCommonConfigPath =
'\\CommonConfigurationpath\Configuration.dtsConfig'
Now i want to execute the same package by passing the configuration(present in Configuration.dtsConfig
earlier) from table, how do i have to edit this command line if @config
contains configuration from table.