Re: Avoiding dupes when merging files
From: Bob Hollness (bob_at_blockbuster.com)
Date: 11/24/04
- Next message: Larry Serflaten: "Re: Internet Explorer object..."
- Previous message: Lucas Tam: "Re: Inheritance design issue"
- In reply to: Lucas Tam: "Re: Avoiding dupes when merging files"
- Next in thread: Lucas Tam: "Re: Avoiding dupes when merging files"
- Reply: Lucas Tam: "Re: Avoiding dupes when merging files"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 22:56:10 +0100
>
> Take a look at the Microsoft Text Driver - you can run SQL queries on the
> text file. Perhaps you can just query each file checking for dupes?
>
> Or you could load the data into a datatable (or hash table type object?),
> with the PK set as the filename... if a duplicate shows up, the datatable
> should throw a duplicate PK exception which you would catch and ignore.
>
> Or lastly... perhaps you should think of a different method of storing the
> data? Maybe a database is a better idea than text files?
>
> --
> Lucas Tam (REMOVEnntp@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/
Thanks for the fast reply. I have to use text files so that really is not
an option. Any pointers or some sample code on how to use the datatable? I
like the idea of being able to trap a dupicate OK error.
Bob
- Next message: Larry Serflaten: "Re: Internet Explorer object..."
- Previous message: Lucas Tam: "Re: Inheritance design issue"
- In reply to: Lucas Tam: "Re: Avoiding dupes when merging files"
- Next in thread: Lucas Tam: "Re: Avoiding dupes when merging files"
- Reply: Lucas Tam: "Re: Avoiding dupes when merging files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|