PDA

Click to See Complete Forum and Search --> : SQL Server Jobs


judysomething
Aug 28th, 2000, 11:06 PM
Could somebody tell me if it is possible to call the jobs(which is in the SQL Sever Agent) in VB 6.0?
If so, How?

Many thanks

JHausmann
Aug 29th, 2000, 11:06 AM
I believe there's an extended stored procedure that'll let you get to it. You can also get to it by adding a reference to Microsoft SQLDMO in your program. You'll need SA authority _and_ you'll want to play with the Jobs collection.

judysomething
Aug 30th, 2000, 12:43 AM
Yes JHausmann, I got it.
There is a system stored procedure in msdb which is called sp_start_job that can start the job in SQL Server Agent.

Thanks a lot.