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.
| Author |
Topic |
|
nicky_river
Yak Posting Veteran
55 Posts |
Posted - 2010-08-11 : 03:06:34
|
| Hi,Could anyone provide me the code on how to execute or call ssis package in a stored procedure in sql server 2000/2008. |
|
|
slimt_slimt
Aged Yak Warrior
746 Posts |
Posted - 2010-08-11 : 05:49:45
|
rupalim -> yes it can be done.one way - that pops into my mind and has been tested - is to do the following:0. build your SSIS package/solution1. 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_jobasdeclare @sql nvarchar(max)set @sql = ''set @sql = 'exec msdb.dbo.sp_start_job N''JOB_TEST'''exec (@Sql) |
 |
|
|
|
|
|