Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21340

Transfer data from .log files to SQL

$
0
0
Sorry for my English.

Hello, im beginer in programing. I need write a program (windows service) which should transfer my log from many files (.log) to SQL date base.
I have folder where i keep my files (.log) and i need transfer data from this files to SQL for each day at 3am.
The first line of the file contains column headers and looks:
WebServiceName;CalledFunctionName;StartTime;EndTime;ErrorMessage
ss;GetAllCustomers;21/08/2013 05:59:38;21/08/2013 05:59:38;;
ss;GetAllCustomers;21/08/2013 06:03:12;21/08/2013 06:03:12;;
ss;GetAllCustomers;21/08/2013 07:12:32;21/08/2013 07:12:33;;

Each subsequent row is one record that describes one event.
Database parameters:

Server = aaa
Base = bbb
User = ccc
Password = ddd

Table = eee

These parameters should also be available outside service'a code.

Thx for help.

Viewing all articles
Browse latest Browse all 21340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>