Sergio Campos
SSC-Addicted
Points: 459
More actions
March 20, 2007 at 2:51 am
#116258
Hi, its posible to execute a job with a stored procedure ?
James Moore (Red Gate)
SSCrazy
Points: 2644
March 20, 2007 at 3:04 am
#695860
Hi there,
sp_start_job should do the trick for you..
somthing like:
EXECUTE msdb..sp_start_job @job_name='job1'
or
EXECUTE
msdb..sp_start_job @job_id=@job_id_given_by_sp_help_job
Hope this helps,
- James
-- James MooreRed Gate Software Ltd
MarkusB
SSC-Dedicated
Points: 37370
March 20, 2007 at 3:05 am
#695861
James,
look in BOL for sp_start_job.
Markus
[font="Verdana"]Markus Bohse[/font]
March 20, 2007 at 3:14 am
#695863
many thanks
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply