|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 2:51 PM
Points: 189,
Visits: 380
|
|
I have a SQL agent job that selects from a table and using the advanced options I can send the results to a test file. It works fine. But I'd like to send the file to a different server and am getting an error: "Executed as user: MGH\sqlagent. Unable to open Step output file. The step succeeded." I added permission for the sql agent service account on the other server. I'm using output path like: \\servername\foldername\filename.txt Is that syntax correct? Am I missing some permission on the other server? Thanks very much for any help.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 9:40 AM
Points: 2,596,
Visits: 4,507
|
|
Your MGH\sqlagent should have full-control access to the folder on your "different server". Also, check if you can ping your "different server" from the SQL one.
_____________________________________________ "The only true wisdom is in knowing you know nothing" "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!" (So many miracle inventions provided by MS to us...)
How to post your question to get the best and quick help
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Monday, June 10, 2013 12:13 PM
Points: 4,319,
Visits: 9,217
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 2:51 PM
Points: 189,
Visits: 380
|
|
| I can ping the other server from the server where the job runs. I have added full control to the share file on the other server where I want the file to go. For the sql agent and the sql server service accounts. Still same error. Thanks for the ideas. Will continue to try.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 2:51 PM
Points: 189,
Visits: 380
|
|
I found the problem. I had to put the drive letter in the path name. Like: \\servername\d$\foldername\filename.txt Thanks to everyone for taking the time to help me with this.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Monday, June 10, 2013 12:13 PM
Points: 4,319,
Visits: 9,217
|
|
Denise McMillan (3/18/2013) I found the problem. I had to put the drive letter in the path name. Like: \\servername\d$\foldername\filename.txt Thanks to everyone for taking the time to help me with this.
That tells me the folder in question here is not a shared folder. And, you added the service accounts as local administrator on the system where that folder exists.
Using the administrative share in this manner will work, but it is not the recommended approach. I would recommend that you review the folder and make sure it is shared with appropriate rights for each user - and change the path to the shared folder path.
Jeffrey Williams Problems are opportunites brilliantly disguised as insurmountable obstacles.
How to post questions to get better answers faster Managing Transaction Logs
|
|
|
|