hi team,
while i am trying to deleting in the sql server agent disabled jobs through sql query, that time i am getting below error.
query is:
delete from dbo.sysjobs
where version_number=5
error message:
Msg 547, Level 16, State 0, Line 1
The DELETE statement conflicted with the REFERENCE constraint "FK__sysjobsch__job_i__32E0915F". The conflict occurred in database "msdb", table "dbo.sysjobschedules", column 'job_id'.
The statement has been terminated.
while i am trying to deleting in the sql server agent disabled jobs through sql query, that time i am getting below error.
query is:
delete from dbo.sysjobs
where version_number=5
error message:
Msg 547, Level 16, State 0, Line 1
The DELETE statement conflicted with the REFERENCE constraint "FK__sysjobsch__job_i__32E0915F". The conflict occurred in database "msdb", table "dbo.sysjobschedules", column 'job_id'.
The statement has been terminated.