Re: Recurring Scheduled Job
- From: treschaud33@xxxxxxxxx
- Date: 13 Sep 2006 12:36:35 -0700
treschau...@xxxxxxxxx wrote:
This is for SQL 2000. Running msdb..sp_help_job will display the
information. I dug through the msdb..sp_help_jobschedule and put the
following query together:
select name
,cast(left(cast(next_run_date as varchar),4)+'-'+
substring(cast(next_run_date as
varchar),5,2)+'-'+right(cast(next_run_date as varchar),2) +' '+
left(cast(next_run_time as varchar),2)+':'+substring(cast(next_run_time
as varchar),3,2)+':'+right(cast(next_run_time as varchar),2) as
datetime) "Next_Run"
from msdb..sysjobschedules
Converting the next_run_date and next_run_time columns got kind of
messy, but it works.
This is not as good I hope. If the job isn't going to run until
tomorrow the next_run_date and next_run_time columns are zero.
.
- Follow-Ups:
- Re: Recurring Scheduled Job
- From: Bryan
- Re: Recurring Scheduled Job
- References:
- Recurring Scheduled Job
- From: Bryan
- Re: Recurring Scheduled Job
- From: treschaud33
- Recurring Scheduled Job
- Prev by Date: Re: Recurring Scheduled Job
- Next by Date: Re: stored proc bug with datetime variable
- Previous by thread: Re: Recurring Scheduled Job
- Next by thread: Re: Recurring Scheduled Job
- Index(es):