Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Delete/Edit Maintenance Plan Connection

Author  Topic 

hismightiness
Posting Yak Master

164 Posts

Posted - 2008-12-16 : 11:56:40
There is a maintenance plan that was created a long time ago to back-up transaction logs. It is no longer functioning because there is a connection in the list of connections that is not correct. Adding a correct connection and pointing the tasks at it doesn't matter, as the maint plan will bomb parsing the original one.

I have tried deleting the maintenance plan to create a new one, but it won't let me.

How can I either delete the faulty connection or edit it? The GUI will not let me Edit or Remove it.

- - - -
- Will -
- - - -
http://www.willstrohl.com

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-16 : 12:01:19
Similar to this:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=98114
.What SP level you have for SQL Server?
Go to Top of Page

hismightiness
Posting Yak Master

164 Posts

Posted - 2008-12-16 : 13:59:30
Outstanding!!! This is what worked for me (from that link):
quote:
Originally posted by janetb

Found this and it worked like a charm - hope it helps someone else.

1. Select the ID with the select statement
select * from sysmaintplan_plans

2. Replace with the selected ID and run the delete statements
delete from sysmaintplan_log where plan_id = ''

delete from sysmaintplan_subplans where plan_id = ''

delete from sysmaintplan_plans where id = ''

3. Delete the SQL Server Jobs with the Management Studio




- - - -
- Will -
- - - -
http://www.willstrohl.com
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-16 : 18:16:28
Good!!!
Go to Top of Page
   

- Advertisement -