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

SSIS - How Check Flat file Columns count with database table columns count

$
0
0

Hi I have a Requirement like below.

I Have a Text file with Row and Column Delimiters.

My File look like below:

ID@##@StartDate@##@EndDate@##@LoadType@!!@
88549@##@2013-10-09 05:00:00.000000@##@2013-10-09 22:00:17.588361@##@R@!!@
88550@##@2013-11-10 09:00:00.000000@##@2013-11-10 23:00:20.098563@##@C@!!@

For this file i have one table with these columns in my database(Sql Server).

Now my requirement is, I want to check the flat file each row having same number of columns with database table.

If any of the row not matching the columns with table, i want to segregate those records or simply reject the file with some message. Then check for another flat file.

Can anybody help on this. I am new to Script Task.

Thanks & Regards,

Naga Raju G




Viewing all articles
Browse latest Browse all 24688

Trending Articles



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