Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2004, 10:45 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default scheduled access

Hello friends,

   I want to run a file(asp page) daily at 12:30 PM and 06:00 PM automatically. I tried scheduled tasks. But it is able to run only programs(.exe)

But my file is in this path \\server\dfb\production\attendance\attrep.asp

How can i do this. I think we can do using wSH, but i am not sure how to write using this. Can u suggest me to schedule that task?

And, i have scanner(swiping card) to record the attendance. This is stored in seperate database given by vendor. We can export this data to access 97 database format. But my application uses access 2000 format. So, i need to retrieve data from 97DB and insert in my DB. My database is in virtual folder and exported db is in physical path. How can i do this task automatically(w/o manual interaction) at regular intervals(daily ... at the above times).

Thanx in advance.

 
Old July 9th, 2004, 04:07 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  I got the solution. I did it. This is the code...

on error resume next
dim conn,rs,str1
set conn=createobject("adodb.connection")
conn.provider="Microsoft.Jet.Oledb.4.0"
conn.open "\\server\donfranco\production\attendance\emp. mdb"
conn.beginTrans
str1="delete from attendance"
conn.execute str1
str1="insert into attendance(eventdate,eventtime,cardnumber) select eventdate,eventtime,cardno from EventListTable in '\\rajani\database\CipherAccess.mdb' where len(cardno)>0"
conn.execute str1

if Err.number <> 0 then
    conn.rollbackTrans
else
    conn.commitTrans
end if
conn.close
set conn=nothing









Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled executions GuidoDB SQL Server 2000 3 January 21st, 2007 07:48 PM
Scheduled task langer123 Classic ASP Basics 0 March 16th, 2005 11:14 AM
Scheduled Information? stacy Beginning PHP 5 September 26th, 2004 10:42 AM
[c#]scheduled task maddonuts General .NET 1 July 7th, 2004 11:53 AM
Scheduled Task Ben Access VBA 1 February 24th, 2004 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.