PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Help with ADO.NET - Please..

Reply

Help with ADO.NET - Please..

 
Thread Tools Rate Thread
Old 02-05-2008, 03:09 PM   #1
sp
Guest
 
Posts: n/a
Default Help with ADO.NET - Please..


I have a table A in Database with 5 columns. I have a CSV file with same
structure as of table A. I need to compare these two table in ado.net after
csv file is loaded into a datatable object. Can any body help me please..
  Reply With Quote
Old 02-05-2008, 04:15 PM   #2
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a
Default Re: Help with ADO.NET - Please..

Make sure they are sorted the same way and then run through the objects.
This can be done with either business objects or a DataTable. The objects
may be better, as you can easily override the Compare method rather than
check each property/column.

You can do this without the sort, but it is a royal pain in the rear. If one
might only have part of the records of the other, you will have to stagger
one or both as your crawl through.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"sp" <sp@discussions.microsoft.com> wrote in message
news:9DC1EA4A-005A-4D85-B81B-2B9FFDCD161A@microsoft.com...
>I have a table A in Database with 5 columns. I have a CSV file with same
> structure as of table A. I need to compare these two table in ado.net
> after
> csv file is loaded into a datatable object. Can any body help me please..



  Reply With Quote
Old 02-05-2008, 08:41 PM   #3
sp
Guest
 
Posts: n/a
Default Re: Help with ADO.NET - Please..

Thank you for you generous help Gregory.

"Cowboy (Gregory A. Beamer)" wrote:

> Make sure they are sorted the same way and then run through the objects.
> This can be done with either business objects or a DataTable. The objects
> may be better, as you can easily override the Compare method rather than
> check each property/column.
>
> You can do this without the sort, but it is a royal pain in the rear. If one
> might only have part of the records of the other, you will have to stagger
> one or both as your crawl through.
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> Subscribe to my blog
> http://gregorybeamer.spaces.live.com/lists/feed.rss
>
> or just read it:
> http://gregorybeamer.spaces.live.com/
>
> *************************************************
> | Think outside the box!
> |
> *************************************************
> "sp" <sp@discussions.microsoft.com> wrote in message
> news:9DC1EA4A-005A-4D85-B81B-2B9FFDCD161A@microsoft.com...
> >I have a table A in Database with 5 columns. I have a CSV file with same
> > structure as of table A. I need to compare these two table in ado.net
> > after
> > csv file is loaded into a datatable object. Can any body help me please..

>
>
>

  Reply With Quote
Old 05-05-2008, 11:01 PM   #4
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a
Default Re: Help with ADO.NET - Please..

I only hope it stirred the pot and you ended up with soup. :-)

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"sp" <sp@discussions.microsoft.com> wrote in message
news:FADC9B57-C6E5-459D-BE31-32EF546D32D3@microsoft.com...
> Thank you for you generous help Gregory.
>
> "Cowboy (Gregory A. Beamer)" wrote:
>
>> Make sure they are sorted the same way and then run through the objects.
>> This can be done with either business objects or a DataTable. The objects
>> may be better, as you can easily override the Compare method rather than
>> check each property/column.
>>
>> You can do this without the sort, but it is a royal pain in the rear. If
>> one
>> might only have part of the records of the other, you will have to
>> stagger
>> one or both as your crawl through.
>>
>> --
>> Gregory A. Beamer
>> MVP, MCP: +I, SE, SD, DBA
>>
>> Subscribe to my blog
>> http://gregorybeamer.spaces.live.com/lists/feed.rss
>>
>> or just read it:
>> http://gregorybeamer.spaces.live.com/
>>
>> *************************************************
>> | Think outside the box!
>> |
>> *************************************************
>> "sp" <sp@discussions.microsoft.com> wrote in message
>> news:9DC1EA4A-005A-4D85-B81B-2B9FFDCD161A@microsoft.com...
>> >I have a table A in Database with 5 columns. I have a CSV file with same
>> > structure as of table A. I need to compare these two table in ado.net
>> > after
>> > csv file is loaded into a datatable object. Can any body help me
>> > please..

>>
>>
>>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off