I wrote a query to insert data from .lst file into table name AxisATM But when i try to insert it gives me error that
WHEN I REMOVES ALL ROWS FROM LST file except First ..It gives me Success msg saying 1 rows changed..
Msg 4866, Level 16, State 1, Line 1
The bulk load failed. The column is too long in the data file for row 1, column 36. Verify that the field terminator and row terminator are specified correctly.
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)".
Query :-
BULK
INSERT dbo.ATMAxis
FROM 'c:\AGS_WINCORE_120901.lst'
WITH
(
FIELDTERMINATOR = '|',
ROWTERMINATOR = 'CHAR(13)'
)
GO
AGS_WINCORE_120901.lst :-
PRO1|......|00000000000|0| {Like it has 36 '|' separators}
Using Notepad++ i know Line End Characters are CR LF
As expected the problem lies in
I have Changed it to