HelloI have a code that was supposed to load a singel csv file into my database and table. I have tested it with some smaller files, and works fine. But when I try the big file, which is 1,4 GB, it errors.Could it be some error in the some of the rows, or with some of the separators ","??The filesize makes it hard to look into it and fix those things.Any one who knows how to load the file without errors?USE [Intradata NYSE] GOCREATE TABLE CSVTest1(Ticker varchar(10) NULL,dateval date NULL,timevale time(0) NULL,Openval varchar(10) NULL,Highval varchar(10) NULL,Lowval varchar(10) NULL,Closeval varchar(10) NULL,Volume varchar(10) NULL)GOBULKINSERT CSVTest1FROM 'c:\intramerge.csv'WITH(FIELDTERMINATOR = ',',ROWTERMINATOR = '\n')GO--Check the content of the table.SELECT *FROM CSVTest1GO--Drop the table to clean up database.DROP TABLE CSVTest1GO
This is what I get in the messagearea: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)"
Kind regardsEspen