Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

get schedule description

By Matthias Kroll,

I was lookig for a way to get the description of a schedule/job schedule via Tsql. We found msdb..sp_help_schedule SP and that using msdb..sp_get_schedule_description.

But what a suprise, the description provided by sp_get_schedule_description was not the one we supposed to get for every case.

I searched for a ready to use workaround and found only some statements using the TSql from the sp_get_schedule_description.

Assume one is creating a job with a schedule for every 4 days at 00:03:00. From msdb..sp_get_schedule_description you will get 'Every day at 300' and not the right description

'Every 4 days at 00:03:00'.

Feel free to put the statement into a View, SP or what else you need, to get the right description of a schedule via TSql.

Total article views: 1564 | Views in the last 30 days: 2
Related Articles

Generate Job Schedule Descriptions

A SELECT statement which includes the alpha description of each job's schedule


Agent Job Schedule Description

Yet another schedule description query with added grammatical improvements.


Hresult: 0x80004005 Description:

Hresult: 0x80004005 Description:


Generate Job Schedule Descriptions

Comments posted to this topic are about the item [B]Generate Job Schedule Descriptions[/B] Did not w...


DTS Package Scheduling error

Urgent ! DTS packge Scheduling error. Step Error Description:Invalid Task Result value.