Solved

Run a stored procedure in MS-Access from windows task scheduler in VB.Net

Posted on 2006-07-20
4
176 Views
Last Modified: 2010-04-23
Hi there all experts,
                            I have a vb.net application with MS-Access as the back end. There are some queries I would like to run using the windows task scheduler if it's possible. Thanks for the help in advance.
0
Comment
Question by:wongke9622
4 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 100 total points
ID: 17153373
Create VB.NET application that will run query and call this application from the scheduler

To run query

        Dim oAccess As Object
        Dim sDB As String = "c:\testdb\db.mdb"
        Dim sQuery As String = "Myqry"

        oAccess = CreateObject("Access.Application")

        ' Open the database
        oAccess.OpenCurrentDatabase(sDB)
        oAccess.DoCmd.OpenQuery(sQuery)
        oAccess.DoCmd.Maximize()
        oAccess.Visible = True
        oAccess = Nothing
0
 

Author Comment

by:wongke9622
ID: 17221159
Thanks iboutchikne, i will try that soon and let you know
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

23 Experts available now in Live!

Get 1:1 Help Now