Program 2 copy log file frm database

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 18
Reputation: nirmala.s is an unknown quantity at this point 
Solved Threads: 0
nirmala.s nirmala.s is offline Offline
Newbie Poster

Program 2 copy log file frm database

 
0
  #1
Nov 23rd, 2006
Hi folkz,

Need help in writing a C program..The scenario is as follows:

We need to copy a log file frm the database to a txt file and the txt file should automatically get updated whenever the log file is modified... Also there shld be a facility to filter data frm the txt file based on a condition...

Cud anyone help me out with diz..

Thnx in advance.

Nirmala.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,468
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1477
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Program 2 copy log file frm database

 
0
  #2
Nov 23rd, 2006
what kind of database? MySql or something else?

>>and the txt file should automatically get updated whenever the log file is modified
This might require a trigger on the database. When the table is updated then a trigger will be activated to run a stored procedure that maintains the text file. This has nothing to do with c or c++, but is a database feature.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 18
Reputation: nirmala.s is an unknown quantity at this point 
Solved Threads: 0
nirmala.s nirmala.s is offline Offline
Newbie Poster

Re: Program 2 copy log file frm database

 
0
  #3
Nov 23rd, 2006
The database is - TIMBERLINE which is mostly used by construction companies 2 maintain their records. I've written the code 2 copy the log file into a text file. Need 2 knw how to update it and also how to select records tht satisfy a particular condition frm the text file.
Cud u plz help me with these..
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,468
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1477
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Program 2 copy log file frm database

 
0
  #4
Nov 23rd, 2006
To you mean Sage Timberline ? Sorry, never heard of it. You should probably contact their support staff.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC