Please have another try with below:
BCP "SELECT quotename(TRIM([CustomColumnName]),char(34)) FROM table" queryout "filepath" -T -S server -d DB -b 500 -c -C 65001 -t~
Or:
bcp table out "filepath" -c -T -t"\",\"" -r"\"\n\"" -S SERVER
If above is still not working,please provide CREATE TABLE statements for your table together with INSERT statements with sample data.
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.