Problem in Job Execution

  • 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]

  • 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.
  • 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]

  • 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.

  • 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