I have a sql server automatic job set up containing 2 steps.
First step is an Operating System Command (CmdExec) type job which
runs a .bat file which copies across a backup file to this machine.
The second step is a Transact -SQL Script (TSQL) type job which runs
the RESTORE DATABASE REPLACE command which restores the backup file
copied across in step 1.
Step 1's advanced option says: On Success Action: Goto Step [2]
Restore the database.
Step 2's advanced option says: On Success Action: Quit the job
reporting success.
On clicking ok I receive the error message:
"WARNING: The following job step(s) cannot be reached with current
flow logic: [1] Transfer the Backup File. Are you sure this is what
you want".
The job fails to run.
Both steps do run successfully when set up as two separate jobs - not
like this which has the two steps in one job.
Anyone have any ideas as to what the flow logic problem is?
Thiko!