Hi,
I want to create csv file using BCP command with row terminator as LF character .I am using below command , Data is coming properly in csv file butCRLF character is coming in the last of each line.
exec master..xp_cmdshell 'bcp test out C:\FCOPMT\x.csv -c -r "\n" -t "," -S SERVER_NAME -U "DB_USER" -P "DB_USER_PASSWORD"'
I have tried another options like "0x0A" instead of "\n" but still getting CRLF in the last of each line.