Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Executing a job using VB

Author  Topic 

simmark333
Starting Member

5 Posts

Posted - 2007-09-17 : 16:15:44
I want to execute a backend SQL job using VB on an MSACCESS frontend.
I know how to run a DTS using VB script. Can anyone give me the syntax for a SQL job? Thanks in advance.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-17 : 16:24:23
To run a job, you can use sp_start_job. Check BOL for details of that msdb system stored procedure.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -