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

Compare Columns from two different tables using SSIS

$
0
0

Hi,

I have two tables.  Table A is supposed transfer into Table B.  I'm finding that rows are tansering correctly.  I'm not missing rows and primary keys, but some columns are not transfering correctly.  So say there was Table A  and there would be a row with value 123 in the product key column and the value 63 in the units sold column.  Then, I'll look it up in table B and the product code 123 will be there, but the units sold column will have a value of 59.  I'm finding about 1.5% of our rows transfer with incorroct values.  These tables have month end data so it is not a matter that there were four sales since the transfer, they should both be the same.  We know we some issues with our ETL that is getting Table A into Table B, but we need to find out exactly which rows aren't getting in correctly so we can deduce why.

I've tried using Merge Join in SSIS and then dump to Excel.  I'll have a column for product key and then a column say TableA_UnitsSold and another, TableB_UnitsSold and then use Excel to find the colmns that don't match.  This is a bit cumbersome.  I'd prefer to run an SSIS package that simply spits out into Excel only the records where Table B units sold does not match Table A units sold for a given record.

I also tried Lookup, but I wasn't having success with that.  The mismatches aren't on the product key, they are on the other columns

Any guidance would be appreciated. We're using SQL Server 2008R2


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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