Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a timer

Status
Not open for further replies.

jl3574

Programmer
Jun 5, 2003
76
CA
i created a database application in visual c++
i want to create a timer where the application will import certains in the datbase at a given time.
so if i can create a timer for 1min then eveyrminute
it will access the database and import the file.

i don't even know where to start ? ne sugguestings?
 
I'm not sure exactly what the problem is (if it's that you don't know how to create a timer, or the stuff that must happen after the timer fires).

If it's the timer you're worried about, then check out the SetTimer API. If not, please supply some more info...

Greetings,
Rick
 
Looks to me as if you need a scheduler to start your program at certain times / intervals.

MS SQLServer contains the SQLAgent which can do the job.
Another way could be the 'at' command (Try at -? in a command prompt).
A very very simple way could be to code a program that simply sleeps for a specified number of seconds. Call this program from a bat-file, and when it terminates, call your database import program.

/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top