获取 SQL Server 中当前正在运行的作业的持续时间。
exec msdb..sp_help_job @execution_status = 1
exec xp_sqlagent_enum_jobs 1, garbage
这些存储过程仅返回作业最后一次运行的“last_run_time”。
获取 SQL Server 中当前正在运行的作业的持续时间。
exec msdb..sp_help_job @execution_status = 1
exec xp_sqlagent_enum_jobs 1, garbage
这些存储过程仅返回作业最后一次运行的“last_run_time”。