xah
10-05-2010, 01:03 AM
Can someone help by giving me examples code of pointing the right way for the following.
For monitoring and reporting purposes I want to use Access as database for a log file.
First I'll import the log file in let's say Table-A then transform it to Table-B like I want it to be. Example of what I mean:
Table-A:
id|log
==|=============================================== ===============
01|-------- XCOM TRANSFER STARTED ------------
02|di 24-11-2009
03|16:00
04|TRANSFER FILE :DCPP_1124155523_IPEILIAS_RTR_AH_0.spl
05| 1 file(s) moved.
06| 1 file(s) moved.
07|TRANSFER OF DCPP_1124155523_IPEILIAS_RTR_AH_0.spl FINISHED
08|-------- XCOM TRANSFER ENDED ------------
Table-B:
id|datum |tijd |spool file |transfer started|transfer finished
==|=============|=====|=========================== ==========|================|==================
01|di 24-11-2009|16:00|DCPP_1124155523_IPEILIAS_RTR_AH_0.spl|T RANSFER STARTED|TRANSFER FINISHED
The string manipulation I can do. I need help with, tranforming the multiple rows per transfer information (Table-A) to one row per transfer (Table-B).
I would prefer not using Visual Basic scripts if there's another way just by using SQL queries and Access functions.
Any help/suggestions are welcome...
For monitoring and reporting purposes I want to use Access as database for a log file.
First I'll import the log file in let's say Table-A then transform it to Table-B like I want it to be. Example of what I mean:
Table-A:
id|log
==|=============================================== ===============
01|-------- XCOM TRANSFER STARTED ------------
02|di 24-11-2009
03|16:00
04|TRANSFER FILE :DCPP_1124155523_IPEILIAS_RTR_AH_0.spl
05| 1 file(s) moved.
06| 1 file(s) moved.
07|TRANSFER OF DCPP_1124155523_IPEILIAS_RTR_AH_0.spl FINISHED
08|-------- XCOM TRANSFER ENDED ------------
Table-B:
id|datum |tijd |spool file |transfer started|transfer finished
==|=============|=====|=========================== ==========|================|==================
01|di 24-11-2009|16:00|DCPP_1124155523_IPEILIAS_RTR_AH_0.spl|T RANSFER STARTED|TRANSFER FINISHED
The string manipulation I can do. I need help with, tranforming the multiple rows per transfer information (Table-A) to one row per transfer (Table-B).
I would prefer not using Visual Basic scripts if there's another way just by using SQL queries and Access functions.
Any help/suggestions are welcome...