 代码
代码 
  1
  . 先执行下面的语句将维护计划的ID查出。
select * from sysmaintplan_plans
 
2 . 将查出的ID填入到下面几句话中的 '' 中,并执行。
delete from sysmaintplan_log where plan_id = ''
 
delete from sysmaintplan_subplans where plan_id = ''
 
delete from sysmaintplan_plans where id = ''
 
3 . 在Sql Agent中删除相应的Job(维护计划会自动建立相应的Job).
 
 select * from sysmaintplan_plans
2 . 将查出的ID填入到下面几句话中的 '' 中,并执行。
delete from sysmaintplan_log where plan_id = ''
delete from sysmaintplan_subplans where plan_id = ''
delete from sysmaintplan_plans where id = ''
3 . 在Sql Agent中删除相应的Job(维护计划会自动建立相应的Job).
 
                   
                   
                   
                   本文介绍如何通过 SQL 语句及 SqlAgent 删除 SQL Server 中不再需要的维护计划,包括查询计划 ID 和删除相关记录的过程。
本文介绍如何通过 SQL 语句及 SqlAgent 删除 SQL Server 中不再需要的维护计划,包括查询计划 ID 和删除相关记录的过程。
           
       
           
                 
                 
                 
                 
                 
                
               
                 
                 
                 
                 
                
               
                 
                 扫一扫
扫一扫
                     
              
             
                  
 被折叠的  条评论
		 为什么被折叠?
被折叠的  条评论
		 为什么被折叠?
		 
		  到【灌水乐园】发言
到【灌水乐园】发言                                
		 
		 
    
   
    
   
             
            


 
            