October 18, 2008 at 1:11 am
Hi All,
I have a job which executes a batch file to move some files across LAN.The job execution shows failure, however the batch file executes and the files are successfuly transfered.
Job Step Info
- type =OperatingSystem Commands(CMDEXEC)
- Command = C:/move.bat
Regards,
[font="Verdana"]Sqlfrenzy[/font]
October 18, 2008 at 9:42 am
Would you mind in posting the error message?
Can you see any related message on the Error Log?
_____________________________________
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.October 19, 2008 at 1:19 am
The error is "Access is Denied", I have loggedin as sa
however the batch file executes successfuly at the command prompt
Regards,
[font="Verdana"]Sqlfrenzy[/font]
October 19, 2008 at 11:37 am
When you execute the job, the SQL Agent service account (or a proxy that is configured) is who executes the batch file. That account needs to have rights to execute the batch file. It's not the user logging into SQL Server.
October 20, 2008 at 12:43 am
Steve Jones - Editor (10/19/2008)
When you execute the job, the SQL Agent service account (or a proxy that is configured) is who executes the batch file. That account needs to have rights to execute the batch file. It's not the user logging into SQL Server.
How can I assign rights to this account.
Regards,
[font="Verdana"]Sqlfrenzy[/font]
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply