“Column is too long” error with BULK INSERT

前端 未结 4 1177
不思量自难忘°
不思量自难忘° 2020-12-16 10:48

I am trying to run the following command to bulk insert data from a CSV file--

 BULK INSERT TestDB.dbo.patent
 FROM \'C:\\1patents.csv\'
 WITH (FIRSTROW = 1,         


        
4条回答
  •  甜味超标
    2020-12-16 11:25

    Unless the file source is Unix, chances are the file's row terminator is really

    \r\n

    Either use a hex editor to validate the file's terminator, or just try that as the row terminator.

提交回复
热议问题