I am trying to import csv file into sql server.
csv file data is
C,FD,20111231,0 8,000,C,ECB,FLL ,FLL,C1,,201111 1009592368,,,,,
C,IS,20111231,0 5,000,C,KWR,TPA ,TPA,F3,,201111 1009592368,,,,,
Bulk insert statement :
BULK INSERT dbo.TB_SAILING_ STAG
FROM 'C:\s1.csv'
WITH
(DATAFILETYPE = 'native',
Keepnulls, FIELDTERMINATOR =',',
FORMATFILE ='C:\PersonForm at_n.fmt',
ROWTERMINATOR ='\t',KEEPIDENT ITY
)
getting below error
Msg 4832, Level 16, State 1, Line 2
Bulk load: An unexpected end of file was encountered in the data file.
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)".
csv file data is
C,FD,20111231,0 8,000,C,ECB,FLL ,FLL,C1,,201111 1009592368,,,,,
C,IS,20111231,0 5,000,C,KWR,TPA ,TPA,F3,,201111 1009592368,,,,,
Bulk insert statement :
BULK INSERT dbo.TB_SAILING_ STAG
FROM 'C:\s1.csv'
WITH
(DATAFILETYPE = 'native',
Keepnulls, FIELDTERMINATOR =',',
FORMATFILE ='C:\PersonForm at_n.fmt',
ROWTERMINATOR ='\t',KEEPIDENT ITY
)
getting below error
Msg 4832, Level 16, State 1, Line 2
Bulk load: An unexpected end of file was encountered in the data file.
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)".
Comment