Thanks.
This has solved my problems...
User Profile
Collapse
-
-
Thanks for your reply
The CSV file comes from a 3rd party source and at this stage it is not possible to remove the embedded commas. the fields with embedded commas are qualified by " " (double quotes) however the fields are being separated at the commas.
is there any code i can add to get the streamreader to recognise the qualified fields?...Leave a comment:
-
Import CSV file into SQL using C#
Hi There
I'm trying to insert a CSV file into SQL Database using C#. I can read the csv file and insert it into the table, however any fields with an embebbed comma are not being read correctly. How can I get around this.
Below is the code that I'm using:
Code:protected void cmdUploadFile_Click(object sender, EventArgs e) { conStr = "workstation id=" + ServerName + ";packet
No activity results to display
Show More
Leave a comment: