Feb 5, 2002 #1 AppSpecialist Programmer Joined Jul 6, 2001 Messages 64 Location CA How do I start a SQL Server Agent job from Visual Basic? This should be fairly simple... I think? Thanks
How do I start a SQL Server Agent job from Visual Basic? This should be fairly simple... I think? Thanks
Feb 5, 2002 #2 RickCole Technical User Joined May 9, 2001 Messages 349 Location GB You could issue the command to execute the msdb stored procdure sp_start_job. Rick. Upvote 0 Downvote
Feb 7, 2002 Thread starter #3 AppSpecialist Programmer Joined Jul 6, 2001 Messages 64 Location CA Yes I had found that procedure earlier... But as an addition, how can I pass a parameter to the job that I am starting? Upvote 0 Downvote
Yes I had found that procedure earlier... But as an addition, how can I pass a parameter to the job that I am starting?
Feb 7, 2002 #4 RickCole Technical User Joined May 9, 2001 Messages 349 Location GB You could write your parameter to a table and let your job pick it up from there. Rick. Upvote 0 Downvote
Feb 7, 2002 #5 tlbroadbent MIS Joined Mar 16, 2001 Messages 9,982 Location US Check this link... http://www.sqldts.com/article.asp?nav=1,6,208,7 Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums. NOTE: Reference to the FAQ is not directed at any individual. Upvote 0 Downvote
Check this link... http://www.sqldts.com/article.asp?nav=1,6,208,7 Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums. NOTE: Reference to the FAQ is not directed at any individual.