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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start a SQL SERVER Agent Job From VB

Status
Not open for further replies.

AppSpecialist

Programmer
Jul 6, 2001
64
CA
How do I start a SQL Server Agent job from Visual Basic?

This should be fairly simple... I think?

Thanks
 
You could issue the command to execute the msdb stored procdure sp_start_job.

Rick.
 
Yes I had found that procedure earlier... But as an addition, how can I pass a parameter to the job that I am starting?
 
You could write your parameter to a table and let your job pick it up from there.

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top