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

编程学习 2021-07-05 16:33www.dzhlxh.cn编程入门
今天开发中,发现维护计划无法删除删除了,遂发现狼蚁网站SEO优化的代码,希望对碰到类似问题的朋友有所帮助。
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 = ' '

Copyright © 2016-2025 www.dzhlxh.cn 金源码 版权所有 Power by

网站模板下载|网络推广|微博营销|seo优化|视频营销|网络营销|微信营销|网站建设|织梦模板|小程序模板