Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute job from stored procedure? 1

Status
Not open for further replies.

tcstom

Programmer
Aug 22, 2003
235
0
0
GB
Hi,

I want to execute a SQL Agent job from a stored procedure in SQL Server 2000. Is this possible? If so, how can I do it?

Thanks.
 
Check out sp_start_job in BOL.

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Thanks JohnDTampaBay. I'd heard of that SP but didn't realise it had to be executed using the msdb database. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top