Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

sql server agent jobs deleting problem

$
0
0
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.

Viewing all articles
Browse latest Browse all 12963

Trending Articles