Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
BULK
INSERT db.yourtable
FROM 'C:/yourFiletoInsert.txt'
WITH
(
FIELDTERMINATOR = '|',
ROWTERMINATOR = '\n'
)
GO
BULK
INSERT DB.MyTable
FROM 'C:\Users\Public\Documents\mssql_data.txt'
WITH
(
FIELDTERMINATOR = ';',
ROWTERMINATOR = '\n'
)
GO
Msg 4866, Level 16, State 1, Line 2
The bulk load failed. The column is too long in the data file for row 1, column 15. Verify that the field terminator and row terminator are specified correctly.
Msg 7399, Level 16, State 1, Line 2
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 2
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
;2;698471;113186005032;1;01-10-2011;33;;33;;33;;116;1271;33
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 517641, column 13 (field).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 689068, column 13 (field).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 715321, column 12 (field).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 715322, column 12 (field).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 715323, column 12 (field).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 715331, column 12 (field).
Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 721779, column 12 (anotherField).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 724515, column 12 (anotherField).
Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 727204, column 12 (anotherField).
Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 784293, column 12 (anotherField).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 784444, column 12 (anotherField).
Msg 4865, Level 16, State 1, Line 1
Cannot bulk load because the maximum number of errors (10) was exceeded.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
type mismatch or invalid character
truncation