Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to achieve file processing

$
0
0

Hi

i want to implement below requirement. please advice

1. i need to watch for specific directory example  "c:\TEST" and look for .txt files ( .txt files will be copied to c:\test directory run time )

2. As and when file is available, i need to process the file . example file name ( FileToProcess.txt)

3.  layout is something like e this:

M100 2012122714453863A49321710001563|ABC|NACHY|||11011988|M|N||N|||N||N||N|N|N|N|N|N|N|N|N|N|N|N|

NZ63 2012122714453869B9321710002BCKS563|XYZ|MART|||11011983|M|N|N|N||N||N|N|N|N|N|N|N|N||N||

XZ67 2012122714453869C9321710005MMNMNS563|KLINE|MICHAEL|||11011983|M|N|N||Y|Y|Y||||||12272012|1445|MNN63|

Based on first 4 characters of the contents of the line, i need to update different tables.

for M100 i need to update table_M100

for NZ63 i need to update table_NZ63

for ZZ67 i need to update table_XZ67

above mentioned records has different number of "|" symbols thus above metnioned tables has different column names.

How to achieve above. IS it better to use SSIS to achieve what i needed OR Do i need to use WCF service etc..

If i want to use SSIS, how can i achieve this as based on first 4 characters , i need to process differently to update different tables(columns) etc..


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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