Home All Groups Group Topic Archive Search About

Deleteing SQL Aent Jobs in SQL2005

Author
17 Jan 2007 3:36 PM
Chris Wood
Hi,

I have a situation where I had created a maintenance plan and edited the
resulting job. I had to delete the maintenance plan and job. In SQL2000 I
would delete the job first then the maintenance plan. I tried this is
SQL2005 and had errors. It referred to the DELETE statement conflicted with
REFERENCE constraint "FK_subplan_job_id". The conflict occurred in msdb
table dbo.sysmaintplan_subplans", column 'job_id'.

I could not delete the maintenance plan either. In the end I renamed the job
then I could delete the maintenance plan.

This is on SQL2005 SP1.

Thanks

Chris

Author
11 Apr 2007 4:54 PM
DaveK
I have same problem.  Did you ever get a reply?  If so, what do I do?  I have
several orphan jobs I cannot delete.  Thanks for any info.
Author
12 Apr 2007 3:00 PM
Chris Wood
DaveK,

I mentioned in my post how I fixed this. Nobody else replied.

Chris

Show quote
"DaveK" <Da***@discussions.microsoft.com> wrote in message
news:79B9F73B-C3E3-47AB-8CCB-3AEA8EC02062@microsoft.com...
>I have same problem.  Did you ever get a reply?  If so, what do I do?  I
>have
> several orphan jobs I cannot delete.  Thanks for any info.

AddThis Social Bookmark Button