How to execute a package SSIS 2008
-
01-06-2021 - |
سؤال
Does anyone know how to trigger the execution of a SSIS 2008 package while running a DTS 2000 package? Actually, my DTS 2000 has to be runned as it is and cannot be converted into a SSIS 2008. SO is it possible to execute maybe a shell command (Dtutil , etc..) to run this SSIS 2008 package?
Thanks for feedbacks
المحلول
There are two ways I can think of doing this.
Make the DTS execution a step in a SQL Agent job, and start that job by running the stored procedure
sp_start_job
Run by executing
xp_cmdshell
:EXEC xp_cmdshell 'dtexec /f "C:\Package.dtsx"'
Option two involves configuring xp_cmdshell to run. xp_cmdshell allows you to issue operating system commands directly to the Windows command shell via T-SQL code - something I'm not entirely comfortable with, so I would go for option 1.
Some helpful links: