Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Dropping an Job

 
   Database Help (Home) -> Tools RSS
Next:  SQL Maintenance Plan and Server Agent Jobs  
Author Message
Greg

External


Since: Jan 26, 2008
Posts: 17



(Msg. 1) Posted: Mon Nov 17, 2008 11:29 am
Post subject: Dropping an Job
Archived from groups: microsoft>public>sqlserver>tools (more info?)

I created a job to test the other day and now I want to delete/drop it. When
I choose the Delete option from Management Studio I get the following error.

Drop Failed for Job "Job Name"
The DELETE statement confliched 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.

What I'm trying to do is delete any Jobs I've setup for testing that I no
longer needs and to also delete any Maintenance Plans I no longer need.
Neither my Job or my Maintenance Plans are referring to any other jobs or
maintenance plans with them. Plus, they are very very basic items. All the
job does is it runs a Maintenance Plan at a certain time. That's it. All the
Maintenance Plan does is perform a backup of the database, that's it. Nothing
fancy is going on here.

After not being able to delete the Job, I went ahead and deleted the
Maintenance Plan and now I get a different error for the Job. It states:
Attempt to retreive data for object failed for Serverxxx failed. The Job
"Backup Name" does not exists on the server.

I don't quite understand what's going on here. All I simply want to be able
to do is create some simple test maintenance plans and jobs and delete them
when I'm done testing.

Thanks,

 >> Stay informed about: Dropping an Job 
Back to top
Login to vote
Ekrem_Önsoy

External


Since: Jan 10, 2008
Posts: 211



(Msg. 2) Posted: Tue Nov 18, 2008 3:25 am
Post subject: Re: Dropping an Job [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You should first delete Maintanence Plans then Jobs related to these plans
will be deleted automatically (of course I've seen some exceptions).

You get that error because the Job is already deleted after you deleted your
Maintanence Plan, so you are trying to delete an non-existing item. Refresh
that node so you'll see that that job is not there.

--
Ekrem Önsoy



"Greg" wrote in message

>I created a job to test the other day and now I want to delete/drop it.
>When
> I choose the Delete option from Management Studio I get the following
> error.
>
> Drop Failed for Job "Job Name"
> The DELETE statement confliched 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.
>
> What I'm trying to do is delete any Jobs I've setup for testing that I no
> longer needs and to also delete any Maintenance Plans I no longer need.
> Neither my Job or my Maintenance Plans are referring to any other jobs or
> maintenance plans with them. Plus, they are very very basic items. All the
> job does is it runs a Maintenance Plan at a certain time. That's it. All
> the
> Maintenance Plan does is perform a backup of the database, that's it.
> Nothing
> fancy is going on here.
>
> After not being able to delete the Job, I went ahead and deleted the
> Maintenance Plan and now I get a different error for the Job. It states:
> Attempt to retreive data for object failed for Serverxxx failed. The Job
> "Backup Name" does not exists on the server.
>
> I don't quite understand what's going on here. All I simply want to be
> able
> to do is create some simple test maintenance plans and jobs and delete
> them
> when I'm done testing.
>
> Thanks,

 >> Stay informed about: Dropping an Job 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[MS Design Tools] - Class Not Registered - On a Windows 2000 pro workstation I am using SQL 2000 enterprise manager I am trying to return all rows, I get the error message "An unexpected error happened during this operation. [MS Design Tools] - Class not registered." I have reinstalle...

Exporting ToExcel file - Hi, I have a SP that adds an Excel file as a linked server, then tries to send the result of a query into this file. I get the following error : ------------ OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. Authentication failed. Insert..

Importing MS Access queries and relationships to MS SQL Se.. - Dear fellow programmers, I am having a big problem on how to import queries and relationships from MS Access to SQL Server. Any suggestions will be a great help & will be appreciated. Thanks in advance, Jeri

Syncronize structure of two databases - Is it possible create SQL script by comparing two different databases (production & development), so that I can execute the script on the production database to syncronize with development database. TIA J Justin

Report Jumps and Parameters - What controls whether the parameter "bar" is displayed or not? I have 2 reports (A and B). Report A jumps to B but does not pass a parameter. Report B has parameters but when you click the link on report A, reports B loads without the parame...
   Database Help (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]