Some time back, I needed to parse a group of Service-U FTP log files and store them in the database so that people could report. On them. I am developing a small App to do the following:
-
View all the files in a DIR that are not loaded in DB (one of the previously filled files Table).
-
Open a file and load all the rows in one list.
-
-
Use RegEx to identify the loop and line type (connect, login, disconnect, upload, download, etc.) through that list, Paste this into a particular type of object for the type of line and add the OBG to another list.
-
Write each of the loops and related database tables through each separate object list.
-
Record that the file was imported successfully.
-
Wash, rinse, repeat.
It's ugly, but we've been working for the time limit.
The problem is that I am in DBA role and I am not happy with running a compiled app. As a solution to this problem, I want to make something more open and more DBA oriented.
I can rewrite it in PowerShell, but I would like to develop an SSIS package. I could not find a good way to divide the input based on the RegEx within the SSIS for the first time and I used to SSIS Was not quite familiar with. I'm digging into more SSIS now, but I'm still not finding what I need.
Do anyone have any suggestions on how I can do a rewrite in SSIS?