-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Iamtheoneurwarnedabout
Message 1 in Discussion

Hi All,   Iam working on a tool in C#. This tool imports the data(.csv, .txt, .xls, 
.dmp) from third party sources, and stores in appropriate table schemas based on 
whether the data/record is unique or not. For that Iam implementing following logic: 
(correct me if Iam wrong)   Iam reading record by record from a file (say .csv) and 
comparing with existing table (say tableA), if the record is found to be existing I 
need to insert the whole record in another tableB (where all duplicate records are 
maintained) if not I need to insert in tableA.   Note: The files(.csv or .txt or .xls) 
which Iam reading does not have any unique field/column. So, Iam comparing the record 
in a file with that of tableA on Firstname, Lastname and Address.   Iam writing a 
stored proc and cursor for this to enhance performance. Stored Procedures consists of 
3 SQL statements (One SELECT and Two INSERT statements). Cursor for SELECT statement 
(Iam using indexes for FirstName, Lastname and Address)   Is there any better 
alternative to this?   Please suggest/advice me whether the above logic is good enough 
keeping in  mind the performance issue (Remember the Data importing will  be in a tune 
of MB's )   Awaiting for your suggestions. 
Regards, Arshad

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to