Solved

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

Posted on 2006-07-09
4
213 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 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