bcp help - Direct Output file to a different Server??

  • Hi,

    I'm using NT authentication. I run the following from server1. I would like to have the output placed on server2, but the file keeps getting directed to server1. Any thoughts?

    C:\>bcp "Northwind.dbo.Region" out "c:\temp\zz_region3.txt" -Sserver2 -c -T

    Starting copy...

    4 rows copied.

    Network packet size (bytes): 4096

    Clock Time (ms.): total       10

     

     

    Many thanks. Jeff

  • Try using a UNC path to Server2. Instead of "c:\temp\zz_region3.txt"

    try \\Server2\c$\temp\zz_region3.txt


    Kindest Regards,

  • Try with a UNC and shared folder ?

    C:\>bcp "Northwind.dbo.Region" out "\\Server2\ShareName\zz_region3.txt" -Sserver2 -c -T

     

  • Excellent. It works!

    Many thanks. Jeff

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

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