PC Review


Reply
Thread Tools Rate Thread

DAtaset comparision ??

 
 
=?Utf-8?B?Y2FsZGVyYXJh?=
Guest
Posts: n/a
 
      27th Oct 2007
Dear all,

What is the best way to compare 2 dataset ?

What I mean by that is not comparing that its teh same object but allso that
rows data values in both .
In other words I need an effeective way which tells me if records between 2
dataset are the same or different

thnaks for help
regards
serge
 
Reply With Quote
 
 
 
 
Mansi Shah
Guest
Posts: n/a
 
      27th Oct 2007

Hi calderara,

Following link may help you:

http://www.devnewsgroups.net/group/m....framework.ado
net/topic4082.aspx

Then after you have any queries then feel free to ask..

Regards,
Mansi Shah.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      27th Oct 2007
Caldera,

A non serialized dataset is in fact nothing more then a wrapper that holds
in opbjects nothing more than references to datatables and datarelations.

DataTables holds references to datacolumns and datarows.

DataRows hold references to items, and items contains data.

If you want to check this, then it will be a loop in a loop etc. However
completely depending what is in the dataset.

In my opinion are you mixing up a dataset with a recordset, while you are
speaking of records. A dataset is completely different from a dataset, the
dataset is not even a resultset.

Cor




 
Reply With Quote
 
=?Utf-8?B?Y2FsZGVyYXJh?=
Guest
Posts: n/a
 
      28th Oct 2007
All right I understand cleary what a dataset is..
Lets keep it simple, I just would like to know if there is straigh forwars
solution to compare items in rows between 2 different rows colelction in
order to know if tehre are equal.



"Cor Ligthert[MVP]" wrote:

> Caldera,
>
> A non serialized dataset is in fact nothing more then a wrapper that holds
> in opbjects nothing more than references to datatables and datarelations.
>
> DataTables holds references to datacolumns and datarows.
>
> DataRows hold references to items, and items contains data.
>
> If you want to check this, then it will be a loop in a loop etc. However
> completely depending what is in the dataset.
>
> In my opinion are you mixing up a dataset with a recordset, while you are
> speaking of records. A dataset is completely different from a dataset, the
> dataset is not even a resultset.
>
> Cor
>
>
>
>

 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      29th Oct 2007
Caldera,

As I wrote already in a (for) loop.

You wrote that you want the compare the contents of objects, those are in
the DataRow Item Collection.

Cor

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup for more than two comparision OPSHARMA Microsoft Excel Misc 2 1st Apr 2009 03:29 PM
[] comparision mm Microsoft C# .NET 11 5th Mar 2009 07:10 PM
Comparision =?Utf-8?B?TGFtYXI=?= Microsoft Access VBA Modules 1 1st Mar 2007 08:25 PM
Comparision John Microsoft Windows 2000 2 8th Jan 2005 06:50 AM
String Comparision Stephen Microsoft ASP .NET 4 1st Oct 2004 01:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:57 AM.