Extract data from table to a remote path using BCP

  • How to extract data from table to a remote(shared) path rather than to the database server path?

    I tried with the following command :

    bcp "select * from tblemp" queryout "\\server\folder\test.txt" -c -t , -S "DBserver -o "1.TXT" -U "Sa" -P "password"

    and get the error msg as

    bcp: Unable to open output file \\server\folder\test.txt: Permission denied.

     

    can anyone help me out on this?

  • This was removed by the editor as SPAM

  • Hi,

     I got the solution for this problem. I changed the MSSQLSERVER and SQLAgent service account to my domain account and it works fine.

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

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