November 25, 2010 at 9:27 am
I have a package saved in msdb which needs to copy a file to a location on another server which is accessed via network mapped drive.
When executing the package through BIDS, or from Integration Services this works fine (this is run under a windows account UserX). When we try to run the packages as a SQLAgent job, it fails.
The jobstep is set to run as a proxy, whose credential points to UserX, so as I understand it, the jobstep should be run under the exact same permissions as it would under UserX, only it doesn't appear to be doing so. The error received is ""Could not find a part of the path "V:\myfilename.xls"
What else can I try?
Thanks for any pointers
November 26, 2010 at 1:13 am
First you should check if all permissions are set up correctly.
Second I'd dump the mapped drive (does it exist on the server) and use a real UNC path.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
November 26, 2010 at 5:47 am
As da-zero said you should not use mapped drives, but specify the complete share path instead. The mapped drives setup is associated with the settings of the user account and it will never work under SQL Job Agent because:
1. The SQL Job Agent is running under different user account.
2. Using the same user account with the mapped drive will still not work because the user account is lightweight. This means that not all user account settings are loaded when executing.
November 26, 2010 at 6:18 am
November 26, 2010 at 6:49 am
November 26, 2010 at 11:43 am
mazzz (11/26/2010)
... and we have lift-off!Many thanks again
No problem. I'm glad it all worked out.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply