欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

SQL2005的维护计划无法删除的解决方法

程序员文章站 2023-02-22 10:50:35
1.查看"维护计划"对象的id 复制代码 代码如下:use msdb select * from sysmaintplan_plans select * from sysm...
1.查看"维护计划"对象的id
复制代码 代码如下:

use msdb

select * from sysmaintplan_plans
select * from sysmaintplan_log
select * from sysmaintplan_subplans

2.根据id号删除相应的"维护计划"
复制代码 代码如下:

delete from sysmaintplan_log where plan_id = ' ‘
delete from sysmaintplan_subplans where subplan_id = ' '
delete from sysmaintplan_plans where id = ' '