use msdb
go --if object_id('tempdb..#SqlAgentJob') is not null
-- drop table #SqlAgentJob
--go declare @SqlAgentJob table(
[job_id] uniqueidentifier
,[originating_server] nvarchar(30)
,[name] sysname null
,[enabled] tinyint
,[description] nvarchar(512)
,[start_step_id] int
,[category] sysname null
,[owner] sysname null
,[notify_level_eventlog] int
,[notify_level_email] int
,[notify_level_netsend] int
,[notify_level_page] int
,[notify_email_operator] sysname null
,[notify_netsend_operator] sysname null
,[notify_page_operator] sysname null
,[delete_level] int
,[date_created] datetime
,[date_modified] datetime
,[version_number] int
,[last_run_date] int
,[last_run_time] int
,[last_run_outcome] int
,[next_run_date] int
,[next_run_time] int
,[next_run_schedule_id] int
,[current_execution_status] int
,[current_execution_step] sysname null
,[current_retry_attempt] int
,[has_step] int
,[has_schedule] int
,[has_target] int
,[type] int
) --go INSERT INTO @SqlAgentJob
(
[job_id]
,[originating_server]
,[name]
,[enabled]
,[description]
,[start_step_id]
,[category]
,[owner]
,[notify_level_eventlog]
,[notify_level_email]
,[notify_level_netsend]
,[notify_level_page]
,[notify_email_operator]
,[notify_netsend_operator]
,[notify_page_operator]
,[delete_level]
,[date_created]
,[date_modified]
,[version_number]
,[last_run_date]
,[last_run_time]
,[last_run_outcome]
,[next_run_date]
,[next_run_time]
,[next_run_schedule_id]
,[current_execution_status]
,[current_execution_step]
,[current_retry_attempt]
,[has_step]
,[has_schedule]
,[has_target]
,[Type]
)
EXECUTE sp_help_job --最主要的是研究这个,后面还会继续研究与此相关的几个系统存储过程 在 msdb库中 --select * from @SqlAgentJob select * from @SqlAgentJob where name like '%humana%'
-- and isnull([owner],'')='' and enabled=1

最新文章

  1. tyvj1089 smrtfun
  2. Yii2初谈
  3. HOLOTOOLKIT的使用
  4. c/c++指针总结[pointer summary]
  5. VS C++ 从一个窗口创建另一个窗口
  6. 【转载】为什么CPU有多层缓存
  7. checkbox 全选、全不选、反选 插件
  8. java路径中的空格问题(转)
  9. nodejs 记入
  10. hadoop编程技巧(3)---定义自己的区划类别Partitioner
  11. kettle连接Hbase中数据导入(8)
  12. Java图书管理系统(用Java常用集合实现)
  13. UltraCompare文件内容比较工具
  14. c#为字段设置默认值,以及构造函数初始化List对象。
  15. Git 操作指南
  16. Oracle XQuery 过滤XML查询SQL
  17. 05-matplotlib-直方图
  18. 〖C语言〗C语言一个函数传递无限制多参数(不确定参数函数)的方法
  19. Dapper ORM
  20. HDU 2280 Tetris Comes Back

热门文章

  1. Hyper-V 虚拟机连网
  2. golang 如何判断变量的类型
  3. WPF Demo1
  4. webstorm打开后无法显示文件夹目录
  5. platform device和platform driver简述
  6. 1019 General Palindromic Number (20 分)
  7. [UE4]用向量表示方向
  8. 自己写的jQuery浮动广告插件
  9. flask框架预备知识
  10. 解决Specifying a namespace in include()withou providing an app_name