CSV file Import

asp India
  • 13 years ago

    Dear Developers,

                               I'm importing CSV  file to sql DB using ASP.  It works fine. But ,If a Cell contain a value like   john,inc  .If  a value like this it CSV take it as two values as john  and  inc  

    But i want in a single value as john,inc  .. How can i do tat

    Thanks in Regards,

    Raju

  • 13 years ago

    Hi,

    CSV means comma seperated value. Each cell value in CSV file is identified by comma. So, first replace comma with special character like tilt (~) in CSV and export CSV file data to sql server. Execute Update query a to replace tilt with comma in query analyzer

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” - Bill Gates