摘要: SELECT definitionFROM DBName.sys.sql_modulesWHERE object_id = (OBJECT_ID(N'DBName.dbo.SP_NAME‘)) 阅读全文
posted @ 2011-10-27 14:54 灵倚 阅读(519) 评论(0) 推荐(0) 编辑
摘要: select J.name 作业名称,P.step_id 步骤编号,P.step_name 步骤名称,P.command 执行命令, case J.enabled when 0 then '禁用 ' when 1 then '启用 ' else ' ' end 状态, case P.last_run_outcome when 0 then '失败 ' when 1 then '成功 ' else ' ' end 上次执行, P.last_run_duration 执行时间秒, str(last_ru 阅读全文
posted @ 2011-10-27 14:52 灵倚 阅读(1170) 评论(0) 推荐(0) 编辑