Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Write file to separate physical server using BCP

Author  Topic 

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2009-01-08 : 10:32:56
I currently have a SQL job which writes a .CSV file out to a directory on the SAME server using BCP commands.

I would like to change this job to write the file out to a separate physical server. What is the queryout syntax needed to accomplish this? Right now, I use queryout "c:\Monthly_Export\test.csv".

Thanks

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-01-08 : 10:37:06
\\Servername\D$\Folder\test.csv

Make sure SQL Server agent has permission to access the file.
Go to Top of Page

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2009-01-08 : 10:41:42
Great, thanks!
Go to Top of Page
   

- Advertisement -