I have search around but have not found anything that has worked in bulk inserting records into a SQL table. I have tried different variation using characters, ASCII and HEX values without success. Each time generating an error. I usually perform alteration in Excel, but his file has over 5M records. This has to be possible, do anyone have a working solution or provide additional guidance ? Thank you in advance.
ERROR:
Msg 4866, Level 16, State 1, Line 110 The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly. Msg 7399, Level 16, State 1, Line 110 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 110 Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
Sample File
SQL Command
BULK INSERT [dbo].[AllTags] FROM 'C:\Data\Swap Drive\File to import\01. Document Export\REL000001-REL296747\SAMPLE.DAT' WITH (ROWTERMINATOR='\n', MAXERRORS=0 , FIELDTERMINATOR='þ' , TABLOCK , CodePage='RAW' )
https://stackoverflow.com/questions/66940947/bulk-insert-and-custom-delimiters-quote-separator-%c3%be-column April 04, 2021 at 07:46PM
没有评论:
发表评论