Question

I have created a sql job with 2 steps to create a db backup i.e., 1st step to get the db backup and second step to copy the db backup to network drive.

  • 1st Step success.
  • 2nd step fails.

In 2step am giving type as operating system(cmdExec) and in command line i mentioned as robocopy <soure> <destination> but it throuws the Error.

Error:-The process could not be created for step 2 of job 0x7847DBA2AFA7D149A5ED24AA8B3B9FA6 (reason: The system cannot find the file specified).  The step failed.

Quick help is highly appreciated.

Was it helpful?

Solution

A few things I can think of:

  1. Make sure that the path in the command is fully qualified (C:... etc) and wrap it in double quotes to avoid issues with spaces in path names. Paste the path into a command window and make sure Robocopy opens OK.

  2. Make sure that the account that the SQL Server instance is running under (probably Network Service) has access to the robocopy executable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top