Solved

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

Posted on 2006-07-20
4
179 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exit the loop 4 49
Assigning handler to UserControls in flowlayoutpanel 4 27
Modal Popup Extender control 1 38
start a process from a service 3 33
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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