Solved

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

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

Independent Software Vendors: 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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 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