Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

get schedule description

By Matthias Kroll, 2010/04/08

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: 1410 | Views in the last 30 days: 7
 
Related Articles
SCRIPT

Generate Job Schedule Descriptions

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

FORUM

Hresult: 0x80004005 Description:

Hresult: 0x80004005 Description:

FORUM

Question about job scheduling

How does the 'every x minutes/hours' schedule work?

FORUM

Generate Job Schedule Descriptions

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

FORUM

DTS Package Scheduling error

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

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones