Hello
I have two dataset. there are more then 10k rows in both dataset.
Now I have to compare both dataset with multiple keys (Composite key) and find the differ rows based on that.
Means,
Dataset1 have County,State,ID,Address,PostalCode
Dataset2 have County,State,ID,Address,PostalCode
I have to compare with ID,County multiple key and find different and new rows
Can you give idea to do this?
I do not want loop each row which already hang the system
Thanks
Keyur
Loading

Khargesh RajputRank #616 · 3.9K reputationPosted Feb 22, 2015, 7:39 PM EST
Joginder BangerRank #360 · 7K reputationPosted Feb 22, 2015, 7:45 PM EST
first of all share your table design for better understanding what you try, why are you used dataset for compare data. you can choose join for better performance.
keyurRank #5,481 · 298 reputationPosted Feb 22, 2015, 7:50 PM EST
Dataset1 have County,State,ID,Address,PostalCode
Dataset2 have County,State,ID,Address,PostalCode
I have csv files and load to dataset.
Can you help me ?
Joginder BangerRank #360 · 7K reputationPosted Feb 22, 2015, 7:58 PM EST
http://www.c-sharpcorner.com/UploadFile/5b3fc9/import-the-csv-file-data-in-sql-server-with-the-help-of-ssi/
Make a temporary file import in table .
make a table as per your requirement.
County,State,ID,Address,PostalCode
keyurRank #5,481 · 298 reputationPosted Feb 22, 2015, 8:01 PM EST
But I can not do like this.User import multiple files and i have to do runtime and find rows.
Thanks for help