sql server Bulk insert csv with data having comma

前端 未结 6 1576
刺人心
刺人心 2020-12-10 04:39

below is the sample line of csv

012,12/11/2013,\"<555523051548>KRISHNA  KUMAR  ASHOKU,AR\",<10-12-2013>,555523051548,12/11/2013,\"13,012.55\",
         


        
6条回答
  •  醉话见心
    2020-12-10 05:06

    MS have now addressed this issue and you can use FIELDQUOTE in your with clause to add quoted string support:

    FIELDQUOTE = '"',
    

    anywhere in your with clause should do the trick, if you have SQL Server 2017 or above.

提交回复
热议问题