Can I use BPC (Bulk Copy Program) to copy the results of a query to a text file on a different server? If so, how can this be done?My current command in the stored proc is as follows:SELECT @sql = 'bcp ##Accounts out ' + RTRIM(@cFilePath) + RTRIM(@cProject) + '.exp -c -t, -T -S ' + @@servername SELECT @sql AS Statement exec master..xp_cmdshell @sql
If I set the @cFilePath to a different server folder path, the file does not get written out.If the folder is on the same server as SQL I don't have a problem. I thought originally it was a Access Issue, but the administrator login is used so it cannot be an security issue. Any suggestions?Mike B