another bcp output format question

  • I am trying to output a file, using bcp, that is PIPE delimited, and it keeps giving me syntax errors. The syntax I am using is:

    exec master..xp_cmdshell 'BCP "select * from ##VENDORS" queryout C:\VENDORS.TXT -c -t \|'

    It seems to be able to deal with it if I use \"|, but then it puts the doublequote before the pipe also.

  • how about -t "|"


    * Noel

  • I THOUGHT in my many iterations that I had tried that, but when I tried it again, it worked.

    Thanks!

    Kerstin

  • np


    * Noel

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply