Link to home
Start Free TrialLog in
Avatar of ITeedOff
ITeedOff

asked on

can't drop sql job

I ma unable to delete an SQL maintenance job (SQL 2005). Error is The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'job_id'.
The statement has been terminated. (.Net SqlClient Data Provider)
Avatar of Alfred A.
Alfred A.
Flag of Australia image

Hi,

My suggestion is for you to drop the constraint "FK_subplan_job_id" first before you delete the job.
ASKER CERTIFIED SOLUTION
Avatar of k_murli_krishna
k_murli_krishna
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ITeedOff
ITeedOff

ASKER

I do not understand the use msdb. Where do I access this?