Solved

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

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

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…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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