msdb.dbo.agent_datetime is translate from integer data and time numbers (in YYYYMMDD and HHMMSS formats) to datetime.
select msdb.dbo.agent_datetime(201702 05, 0)
select msdb.dbo.agent_datetime(201702 05, 123122)
select msdb.dbo.agent_datetime(201702 05, 112)
select run_date,run_time, msdb.dbo.agent_datetime(run_ date,run_time)
from msdb.dbo.sysjobhistory
No comments:
Post a Comment