October 25, 2018 at 6:08 am
I have a job that does backups and out of the blue just stopped working. I deleted the job and recreated it and still fails. I changed the user of the job still fails. I changed the user for SQL Agent still fails. I am out of ideas
Date 10/25/2018 8:06:05 AM
Log Job History (Daily Full Backups all Databases.Subplan_1)
Step ID 1
Server KNET-OCUDM1\OCUSQLSVR
Job Name Daily Full Backups all Databases.Subplan_1
Step Name Subplan_1
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: KNET-OCUDM1\SYSTEM. The step failed.
October 25, 2018 at 7:22 am
keanyukas - Thursday, October 25, 2018 6:08 AMI have a job that does backups and out of the blue just stopped working. I deleted the job and recreated it and still fails. I changed the user of the job still fails. I changed the user for SQL Agent still fails. I am out of ideas
Date 10/25/2018 8:06:05 AM
Log Job History (Daily Full Backups all Databases.Subplan_1)Step ID 1
Server KNET-OCUDM1\OCUSQLSVR
Job Name Daily Full Backups all Databases.Subplan_1
Step Name Subplan_1
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0Message
Executed as user: KNET-OCUDM1\SYSTEM. The step failed.
Share us the SQL version and are you using maintenance plan or customized script.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
October 25, 2018 at 7:26 am
14.0.1000.169
USE [msdb]
GO
/****** Object: Job [Daily Full Backups all Databases.Subplan_1] Script Date: 10/25/2018 8:03:46 AM ******/
EXEC msdb.dbo.sp_delete_job @job_id=N'6e33347b-7d3f-4da9-a9c3-9d5784d254b6', @delete_unused_schedule=1
GO
/****** Object: Job [Daily Full Backups all Databases.Subplan_1] Script Date: 10/25/2018 8:03:46 AM ******/
BEGIN TRANSACTION
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
/****** Object: JobCategory [Database Maintenance] Script Date: 10/25/2018 8:03:46 AM ******/
IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'Database Maintenance' AND category_class=1)
BEGIN
EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'Database Maintenance'
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
END
DECLARE @jobId BINARY(16)
EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'Daily Full Backups all Databases.Subplan_1',
@enabled=1,
@notify_level_eventlog=2,
@notify_level_email=0,
@notify_level_netsend=0,
@notify_level_page=0,
@delete_level=0,
@description=N'No description available.',
@category_name=N'Database Maintenance',
@owner_login_name=N'sa', @job_id = @jobId OUTPUT
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
/****** Object: Step [Subplan_1] Script Date: 10/25/2018 8:03:46 AM ******/
EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'Subplan_1',
@step_id=1,
@cmdexec_success_code=0,
@on_success_action=1,
@on_success_step_id=0,
@on_fail_action=2,
@on_fail_step_id=0,
@retry_attempts=0,
@retry_interval=0,
@os_run_priority=0, @subsystem=N'SSIS',
@command=N'/SQL "\"Maintenance Plans\Daily Full Backups all Databases\"" /SERVER "\"KNET-OCUDM1\OCUSQLSVR\"" /CHECKPOINTING OFF /SET "\"\Package\Subplan_1.Disable\"";false /REPORTING E',
@flags=32
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'Daily Full Backups all Databases',
@enabled=1,
@freq_type=4,
@freq_interval=1,
@freq_subday_type=1,
@freq_subday_interval=0,
@freq_relative_interval=0,
@freq_recurrence_factor=0,
@active_start_date=20181025,
@active_end_date=99991231,
@active_start_time=0,
@active_end_time=235959,
@schedule_uid=N'4d7e9f72-7a4e-44f9-aa6c-19a4c9542276'
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)'
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
COMMIT TRANSACTION
GOTO EndSave
QuitWithRollback:
IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION
EndSave:
GO
October 25, 2018 at 7:33 am
Please check in the maintenance plan history and you can get more information that why it is failing.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
October 25, 2018 at 7:37 am
Actually I just looked and all my jobs stopped working yesterday
October 25, 2018 at 7:40 am
keanyukas - Thursday, October 25, 2018 7:37 AMActually I just looked and all my jobs stopped working yesterday
Please check the history. Any recent changes like service account and permission ect.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
October 25, 2018 at 7:45 am
I have only three jobs and they all show the same thing
Date 10/25/2018 9:33:24 AM
Log Job History (Index Rebuild.Subplan_1)
Step ID 1
Server KNET-OCUDM1\OCUSQLSVR
Job Name Index Rebuild.Subplan_1
Step Name Subplan_1
Duration 00:00:01
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: KNET-OCUDM1\SYSTEM. Started: 9:33:24 AM Finished: 9:33:25 AM Elapsed: 1.093 seconds. The package could not be loaded. The step failed.
October 25, 2018 at 8:19 am
check your job -->step--> advanced --> output file location
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply