Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. BulkInsert Problem

BulkInsert Problem

Scheduled Pinned Locked Moved Database
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sabarinathan T
    wrote on last edited by
    #1

    Hi, I have a problem with a bulkinsert of csv file.The file is in the format that some columns are in the format of string and the same is terminated by a "","" charecter and some column are in the form of int and that is terminated by a "," charecter.While Bulkinserting if the column is having the comma(,) with in it, then the data is uptating for the next column. Can anyone help me on this. Regards Sabarinathan T.

    A 1 Reply Last reply
    0
    • S Sabarinathan T

      Hi, I have a problem with a bulkinsert of csv file.The file is in the format that some columns are in the format of string and the same is terminated by a "","" charecter and some column are in the form of int and that is terminated by a "," charecter.While Bulkinserting if the column is having the comma(,) with in it, then the data is uptating for the next column. Can anyone help me on this. Regards Sabarinathan T.

      A Offline
      A Offline
      Adeel Chaudhry
      wrote on last edited by
      #2

      Hello, That will always happen unless the delimiter is changed to something else eg "|". Otherwise: 1,abc,d,2 cant be 3 columns in a CSV file, because CSV=COMMA SEPERATED VALUE, so what you want is: 1|abc,d|2 which will always be 3 columns. Regards, Adeel

      Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

      S 1 Reply Last reply
      0
      • A Adeel Chaudhry

        Hello, That will always happen unless the delimiter is changed to something else eg "|". Otherwise: 1,abc,d,2 cant be 3 columns in a CSV file, because CSV=COMMA SEPERATED VALUE, so what you want is: 1|abc,d|2 which will always be 3 columns. Regards, Adeel

        Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

        S Offline
        S Offline
        Sabarinathan T
        wrote on last edited by
        #3

        Hello Adeel, Thanks a lot for the suggestion.It could help me to change to other delimiter like '|'. Rgds Sabari

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups