Start a SQL Agent Job in SQL
How do you start a SQL Agent job in SQL? I recently found myself wanting to be able to do this and it turns out it's really easy:
exec msdb.dbo.sp_start_job 'Check Integrity'
It returns as soon as the job has started, without waiting until the job has finished. You could use it to run a job from a script or a stored procedure. But the way I use it is in the last step of a job in order to run jobs in sequence without having to guess in the schedules how to time them. No wasted time and no danger of the second job running before the first one has finished.