August 19, 2021 at 10:14 pm
Looking to create a Calendar report for SQL Agent Jobs, to display the future (1 week, e.g.) and past (already run) jobs just like the calendar entries are shown on a regular calendar.
I ve been predominantly DBA/DevOpser/DB Developer for a decade). Its been a while since VB6, first version of .NET, or ASP 2.. (my last GUI experience), so i am not sure what GUI to use for such project? SSRS Ok? Are there any issues why I may not want SSRS for that?
it would always enable us at any given moment to know:
this Friday at 3 p.m. such and such job(s) will be launched (that at previous run took 15 minutes.. (e.g.) ),
and last Friday at the same time this and that job was run as well. And have a quick glance compare that way. It seems to be a useful report for anyone of us. And for the management , too.
We are talking about several servers with 500 to 1000 jobs each.
IF you are advising against SSRS then why?
if SSRS then will using a Calendar control work?
Thank you.
Likes to play Chess
August 20, 2021 at 11:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
August 21, 2021 at 3:53 pm
You say you want it to be displayed "just like the calendar entries are shown on a regular calendar". If you have 500 to 1000 jobs on a server lie you say you do and even just 10% run every day, I'm thinking that's pretty much doomed to failure because each day would contain 50 to 100 entries. And you're saying you want such a calendar output for a week before and a week after? I'm thinking that wouldn't actually be real useful.
If you want to know what's going to be running (based on duration history) for a given time frame, go for that as table-like output. I don't believe you need anything fancy for formatting for such inquiries either. Why isn't the output in an SSMS session good enough instead of bothering your SSRS system with yet another report that takes too long to render and deliver?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 22, 2021 at 3:58 am
Thank you.
I totally agree. There is a limit of how many jobs calendar can display.
Is there any calendar control (existing control like for .Net) that would allow to click on an hour (say, 23:00 will be highlighted if there are jobs scheduled for that hour) and get a breakdown in a tabular report then?
Likes to play Chess
August 22, 2021 at 4:41 am
I'm going to have to defer to someone else on that question for details. I stopped doing anything like that way back in 2003. I do remember that there was a calendar control that would allow you to do that in old VB and see no reason why .Net or any other language capable of driving a GUI wouldn't have such a control. As with all else, I suspect that Google would be your friend there.
I can tell you that generating the report might produce a bigger report than you were expecting but it would be fairly easy to do in T-SQL. Just remember the simple 2 criteria lookup on start and end times in the history table. The following article introduces that simple but frequently overlooked simplicity.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply