Bulk load data conversion error (truncation)
It's picking up the commas within the comments field as delimiters, because the delimiters are not consistent. The best solution is to insure that all fields are wrapped with double quotes and set FIELDTERMINATOR
to '","'
. Alternately, replace the commas with something unlikely to be in the comments (like ~
) and set FIELDTERMINATOR = '~'
.
Bulk Insert Failed Bulk load data conversion error (truncation)
The problem is likely the row terminator is not working due to the file format.
Try:
ROWTERMINATOR = '0x0a'
EDIT
Actually I just notice you are using forward slash, it should be backslash, so this may work:
ROWTERMINATOR = '\n'
error Bulk load data conversion error (truncation) when inserting data from a text file
Trybulk insert [dbo].[IB_Emetteur]
from 'C:\Users\Manu\Documents\GL5\Finance\liste_emetteur.txt'
with (fieldterminator = ',', rowterminator = '\n',FIRSTROW = 2)
go
SQL Bulk load data conversion error (truncation) (Restatement_Reason)
Check the data you are trying to bulk insert.
More specific, check row 13651 and column 201.
It propably means that the data in that location is too wide for the column you are trying to insert it into.
Related Topics
Executing a Stored Procedure Within a Stored Procedure
Modify Materialized View Query
Difference Between Information_Schema VS Sys Tables in SQL Server
Renaming a Column in Ms SQL Server 2005
Differencebetween Prepared Statements and SQL or Pl/Pgsql Functions, in Terms of Their Purpose
SQL Query to Join Two Tables Based Off Closest Timestamp
Use a Like Clause in Part of an Inner Join
Preserve SQL Indexes While Altering Column Datatype
Create SQL Server Table Based on a User Defined Type
Conversion Failed When Converting from a Character String to Uniqueidentifier
Characters That Must Be Escaped in T-Sql
4 Byte Unsigned Int in SQL Server
H2 SQL Database - Insert If the Record Does Not Exist
How to Pass a Parameter to a T-SQL Script
Removing Duplicates from a SQL Query (Not Just "Use Distinct")