If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > New to Databases (Wanting to learn)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-09, 16:12
Dadiib Dadiib is offline
Registered User
 
Join Date: Mar 2009
Posts: 3
New to Databases (Wanting to learn)

Hello folks this is going to be a newb question and probrably one I'll get flamed for but I want to learn and questions and reading is the only way. I've been reading and still not finding anything on this question.

If I have some source of data going into a text file (constantly) how do I take that data and connect it to say either MySQL or SQL Server Express so that it collects that data (automatically) and puts it in a table format (that either I create or edit). Secondly once it’s collecting that data and putting it into the Schema or DB how do I generate a report of it automatically.

Thanks in Advance
Reply With Quote
  #2 (permalink)  
Old 03-20-09, 16:21
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
you'd use a cron job or a windows scheduled task

and by the way, don't worry about getting flamed -- the only stupid questions are the ones you don't ask

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-20-09, 16:43
Dadiib Dadiib is offline
Registered User
 
Join Date: Mar 2009
Posts: 3
That doesn't adderss my question thanks anyway. What I'm looking for is how do a get MySql or SQL Express to read that text file and constantly and pull data from it...I don't see how Task Scheduler can make that happen...For instance in MySQL 5.1 when I log into the Administarator and select Catalogs I cannot click file open and select that text file and then automate the collection of data... this is what I'm trying to acheive. I can't seem to figure that part out.

Last edited by Dadiib; 03-20-09 at 16:52.
Reply With Quote
  #4 (permalink)  
Old 03-20-09, 16:55
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
actually, i think it does address your question

the "constantly" part is what the cron job or scheduled task handles

you could schedule it to run every 5 seconds -- is that constant enough?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 03-20-09, 17:01
Dadiib Dadiib is offline
Registered User
 
Join Date: Mar 2009
Posts: 3
But how do I get the file information into MySQL.... for instance in Access 2007 I can import a text file and set it as a linked file so that if the text file is change so is the table.... What I can't seem to do is get the text file into MySQL and have it linked. Or am I just way off here....
Reply With Quote
  #6 (permalink)  
Old 03-20-09, 17:45
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
look up the LOAD DATA INFILE command in da manual

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On