?
Solved

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

Posted on 2006-07-09
4
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

764 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