I am trying to insert a .csv file into a database with unix linebreaks. The command I am running is:
BULK INSERT table_name FROM \'C:\\file.csv\' WITH (
I confirm that the syntax
ROWTERMINATOR = '''+CHAR(10)+'''
works when used with an EXEC command.
If you have multiple ROWTERMINATOR characters (e.g. a pipe and a unix linefeed) then the syntax for this is:
ROWTERMINATOR = '''+CHAR(124)+''+CHAR(10)+'''