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.

  1. -i not valid option
  2. -t should specify field delimeter
  3. 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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -