I'm struggling with trying to set up BULK INSERT
options for SQL Server for a UTF8 text file with fields containing both Polish and Czech/Slovak characters and a custom field separator (‡
).
Snippet of the file is shown here:
Štefánia Nešborowaerová‡JęzykźźźŻŻŻÓÓŁŁŁĘĘęąńć‡20.909Štefán Nešbáro‡Jaś Wędrówkaż‡55.55John Rastad‡Wiktor Tędracki‡0.20689
If I replace the custom field separator with a comma, then the code I use works fine. However I need the BULK INSERT
code to work with the custom (‡
) separator.
BULK INSERT [Test].[dbo].[TestTable]FROM 'D:\Import\Import.csv'WITH ( FIRSTROW = 1, FIELDTERMINATOR = ',', CODEPAGE='65001', KEEPIDENTITY )