SQL2005的维护计划无法删除的解决方法
更新时间:2010年06月09日 01:15:42 作者:
今天开发中,发现维护计划无法删除删除了,遂发现下面的代码,希望对碰到类似问题的朋友有所帮助。
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 = ' '
复制代码 代码如下:
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 = ' '
相关文章
如何在SQL SERVER 2005存储过程中,使用循环语句
本篇文章是对如何在SQL SERVER 2005存储过程中,使用循环语句进行了详细的分析介绍,需要的朋友参考下2013-06-06PowerDesigner中如何导入SQL Server数据库
这篇文章向我们介绍了如何导入SQL Server数据库到PowerDesigner中的详细步骤说明,并附带图片介绍,需要了解的朋友可以参考下2015-07-07SQL2008中SQL应用之-阻塞(Blocking)应用分析
当一个数据库会话中的事务正锁定一个或多个其他会话事务想要读取或修改的资源时,会产生阻塞(Blocking)。2011-06-06在sqlserver2005中安装sql server 2000的示例数据库northwind的方法
装完sql server 2005后却没有找到ms的示例数据库northwind 后来查看安装光盘发现sql server 2005种只有adventurework与adventureworkDW这两个sample database 到ms官方站找了好久 才找到sql server 2000的sample database2013-05-05
最新评论