Hi.
I am trying to use the BCP in command line. I am trying for the below code:
bcp "select ('"' + replace(ltrim(rtrim(diary)), '""', '""""') + '"') as diry from test.txt " queryout "path" -t -s servername -d dbname -b 500 -c -c 65001 -t~
I am getting error as - copy direction must be in, out or format
How to fix this