techsupport3977
Technical User
I have a bunch of computers that have a data acquisition program and the program uses a file (.qma this is a text file format) to determine whether or not data records need to be submitted to a database. At the top of the file shows the KEY field. Below the key field, it will be blank (all records safely transmitted or the file may not exist which means all data has been sent) or it will keep a log of the key field entries of the records that have not been transmitted. I would like to have access or SQL look at this file(s) and determine if there are records to be sent. To me if there are records to be sent, then there is a problem with the computer.
My question is how can I create a query in Access or a stored procedure in SQL to look up a file that may or may not exist, review the contents and decide if there is data from line 2 of the text file? I would like the query to simply say 1 for problem, 0 for no problem.
My question is how can I create a query in Access or a stored procedure in SQL to look up a file that may or may not exist, review the contents and decide if there is data from line 2 of the text file? I would like the query to simply say 1 for problem, 0 for no problem.