Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I want to call and execute an SSIS Package from a CLR Stored Procedure.

Can any one help with the code and description of the code.
Posted

1 solution

Try Below code

SQL
DECLARE @JobId Nvarchar(max)
DECLARE @Jobname NVarchar(max) = '' --JobName
select @JobId = job_id FROM msdb.dbo.sysjobs where name = @jobname
EXEC msdb.dbo.sp_start_job @job_id = @JobId
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900