Solved

How can you create SQL Server Jobs from a VB.NET program?

Posted on 2006-07-09
4
208 Views
Last Modified: 2010-04-23
Can someone show me how to create a SQL JOB from a VB.NET program.  I would like to develop a VB.NET program that allows users to schedule jobs for a certain function.  Has anyone ever done this before?  
0
Comment
Question by:Hojoformo
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17070589
sp_add_job is your starting point:
http://doc.ddart.net/mssql/sql70/sp_adda_13.htm

from there, see also:
sp_add_jobschedule
sp_add_jobstep

and of course:
sp_start_job
to start it explicitely
0
 
LVL 8

Expert Comment

by:doobdave
ID: 17090706
Hi there,

If using SQL Server 2000, I would suggest you could use SQLDMO (data management objects) to achieve your purpose.

Please refer to the SQL Server books online, which gives detailed information about the available objects and functions.

Please feel free to post any further questions here so we may be able to hep you.

Best Regards,

David
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now