I'm not doubting its performance. I think , maybe under some special cases , "table comparison" have some problems .
I have uploaded my programs.
ALT_EXCHANGE_2_EXTRACT_FF.TXT : source flatfile
table_creation.txt : In my job, there're two tables . This is its creation sql . My tables are created in sql server .