Thanks Ulf and William for your comments. Ulf, I have finished the coding part of it and found that it's working fine for csv data containing 5000 rows with 50 cells each but as the no. of rows increases the application slows down and sometimes it also throws OutOfMemoryException. I think it's because I am creating a lot of objects. Following is the part of code I have written:
So, I am creating customInfo and phonesNos objects for each row of csv data.
Can you tell me how to avoid this thing?
William, you are right that database writing operation are going to be slowest, so to avoid this I am using bulk insert approach. This saves me the no. of database calls.
Regards,