sql - BCP syntax error in sybase -
i'm running bcp code through command line looks similar below
bcp tempdb..temptable out output.txt -s servername -i, -u username –p pword –r \n -t
each time , error saying "syntax error in 'úp' if remove after username able code work prompted password gives table in format imposssible use.
could advise syntax error may occuring?
from can tell, appears have few issues.
-i
not valid option-t
should specify field delimeter- you haven't specified mode (character or native) (-c or -n)
assuming trying create csv, here's may looking for:
bcp tempdb..temptable out output.txt -s servername -u username -p password -c -t , -r \n
you may find page helpful bcp section of sybase ase utility guide it's ase 15.5 docs, syntax same versions 12.0 , newer.
Comments
Post a Comment