Solved

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

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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…
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…

739 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