首页 > 数据库 > SQL Server > 正文

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

2020-10-30 19:10:23
字体:
来源:转载
供稿:网友
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 = ' '
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表