Click here to Skip to main content
14,969,930 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two datasets and i need to compare these two datasets such that if name and address don't exist in second dataset, i need to create third dataset and insert all
data's from dataset one and dataset two. if it is exists in dataset one or dataset two, i may not insert same values in the thrid dataset , i need to insert only one.please help someone.
Richard MacCutchan 18-Jul-12 13:48pm
Help with what? You have explained what you want to do but not what your problem is. And please use a meaningful title for your questions, this has nothing to do with visual studio dot net.

1 solution

Following method of dataset should be helpful: MSDN: DataSet.Merge Method[^]

Have a look at it's implementation here: Merging two DataSets eliminating the duplicate rows[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900