Solved

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

Posted on 2006-07-20
4
175 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
Comment Utility
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
Comment Utility
Thanks iboutchikne, i will try that soon and let you know
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

11 Experts available now in Live!

Get 1:1 Help Now