Click here to Skip to main content
15,891,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want compare two set of records. One is dataset records and another is Sqltable records. I want get the sql record which is not in dataset records. Please help me anybody.
Thank you


[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 12-Mar-12 6:59am
v2
Comments
[no name] 12-Mar-12 12:32pm    
Can you please show some code/progress you made so far?
OriginalGriff 12-Mar-12 12:59pm    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
infinitizon 12-Mar-12 13:13pm    
Dont know if this will help, but you may try copying your Sqltable records into another datatable, then compare the two datatables.

Check out:
http://stackoverflow.com/questions/164144/c-how-to-compare-two-datatables-a-b-how-to-show-rows-which-are-in-b-but-not
http://stackoverflow.com/questions/1259855/compare-two-datasets-in-c-sharp
Ganesan Senthilvel 12-Mar-12 21:43pm    
Share your code for clarity
i_am_LemOn 13-Mar-12 0:23am    
are you using stored procedure? or you want to get the table records straight from your code (front-end)?

1 solution

May this help you.

put your both records in two dataset then using a loop match each rows/column
then that records not matched then insert it into another temporary datatable/dataset.
 
Share this answer
 

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