I have this csv named test.csv with the content below
1,\"test user\",,,4075619900,example@example.com,\"Aldelo for Restaurants\",\"this is my deal\",,\"loca
I think problem is that your csv file uses \n
as EOL (unix way). BULK INSERT in SQL Server is "smart" and even if you specify ROWTERMINATOR
as \n
, which in theory should resolve your problem, it prepends it with \r
so you end up with \r\n
as row terminator.
Try using ROWTERMINATOR='0x0A'
. In this case SQL Server doesn't perform any magic tricks and just uses the value you've set as row terminator.
Works for me. :)