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

Comparing flat file and table

$
0
0

Hi,

I have a flat file where I pick up only the first line which has a Control File name and a numbercounter. I have a table which has processed date and numbercounter.

FlatFile:

Control.txt , 4

Table:

ProcessedDate   Counter

2012-12-10         3

If the numbercounter from the flat file is greater than one, for the maximum date in the table then I want to insert this record into table else the package should fail.

How can I achieve this? I can't use bulk commands in TSQL. If there is any other option that would be useful.

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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