sql server Bulk insert csv with data having comma

前端 未结 6 1573
刺人心
刺人心 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 04:57

    I have encountered this problem recently and had to switch to tab-delimited format. If you do that and use the SQL Server Management Studio to do the import (Right-click on database, then select Tasks, then Import) tab-delimited works just fine. The bulk insert option with tab-delimited should also work.

    I must admit to being very surprised when finding out that Microsoft SQL Server had this comma-delimited issue. The CSV file format is a very old one, so finding out that this was an issue with a modern database was very disappointing.

提交回复
热议问题