无法删除SQLSERVER代理任务时可用如下语句试验下 use [msdb] ) set @job_name = N'jobname' --注:job_name为维护计划对应的job name --删除在计划里面的日志 delete sysmaintplan_log from sysmaintplan_subplans as subplans inner join sysjobs_view as syjobs on subplans.job_id = syjobs.job_id inner jo…
每天偶尔检查数据库作业是否失败,发现有错误 select top 10 job_id,run_date,run_time,run_duration,step_name,message from msdb..sysjobhistory where run_status = 0 order by run_date desc,run_time desc 该作业失败. 计划 12(复制代理计划.)调用了该作业.最后运行的是步骤 1(运行代理.).. 已以用户 NTAUTHORITY\NETWORKSE…