kodaksmile
MIS
I have a sql job that has 2 lines of code to rename 2 separate files. The problem I am having is the job only runs the first line of code and then reports success. If I put the code in a bat file it runs fine.
move /Y S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource.mdf S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource_mdf.bak
move /Y S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource.ldf S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource_ldf.bak
This is really starting to drive me nuts.. I don't want to have to maintain a bat file on the o/s side, I'd rather keep it in the job. I realize I could just create a separate step for each command but, shouldn't I be able to have it in one step?
move /Y S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource.mdf S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource_mdf.bak
move /Y S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource.ldf S:\"Microsoft SQL Server"\MSSQL.1\MSSQL\Backup\mssqlsystemresource\mssqlsystemresource_ldf.bak
This is really starting to drive me nuts.. I don't want to have to maintain a bat file on the o/s side, I'd rather keep it in the job. I realize I could just create a separate step for each command but, shouldn't I be able to have it in one step?