Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Logic for SSIS

Author  Topic 

rupalim
Starting Member

20 Posts

Posted - 2010-08-11 : 05:30:14
please provide me some logic/steps in calling a ssis package in stored procedure

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2010-08-11 : 05:49:07
one way - that pops into my mind and has been tested - is to do the following:

0. build your SSIS package/solution
1. create a job that will run your SSIS package. no need to set the schedule or anything else.
2. create a procedure that will start this particular job with SSIS package; something like:


create procedure run_job
as
declare @sql nvarchar(max)
set @sql = ''
set @sql = 'exec msdb.dbo.sp_start_job N''JOB_TEST'''
exec (@Sql)

Go to Top of Page
   

- Advertisement -