January 31, 2007 at 6:52 am
I have 4 Jobs on sql server 2005 and I cannot delete it, I'm getting this error:
Drop failed for Job MaintenancePlan-Shipping log.
the delete statement conflicted with the REFERENCE constraint "fk_subplan_job_id
any ideas how to fix it?
thanks in advance.
January 31, 2007 at 7:08 am
Have you tried deleting the maintenance plan linking to that job?
January 31, 2007 at 7:10 am
there is NO Maintenance Plan, only a JOB, and I want to delete that job
January 31, 2007 at 7:41 am
I don't have 2005 installed here.
What have you found in the relations of the system tables?
January 31, 2007 at 7:44 am
I found the problem.
the problema was on 2 table on MSDB database
1- select
* from dbo.sysjobs
2- select
* from dbo.sysmaintplan_subplans
I delete the job from table 2 and then right click on the job itself and delete and it go way...
works
thanks
January 31, 2007 at 7:57 am
You can delete directly in the system tables in 2005 ?!?!
January 31, 2007 at 7:59 am
Yes you can...
March 14, 2007 at 10:05 am
This information has just helped me. Thanks a lot!
December 29, 2010 at 2:32 am
An excellent step by step guide can be founded on http://gudenas.com/2007/04/20/sql-server-2005-delete-maintenance-plan-error/.
December 29, 2010 at 6:16 am
Easiest approach would have been to delete the "Subplan" in the Maintenance Plan. The job would be automatically deleted.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply