I am looking for a library I could import to my project that would take a csv file, then create and populate the datatable in SQL. Is there anything like that i could use straight out of the box?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can certainly perform the inverse (dumping sql resultset to csv) with opencsv. It might be a good place to start.
opencsv will at least do the tricky part of reading your csv file and handle all the encoding and character escaping nonsense.