February 14, 2022 at 12:00 am
Comments posted to this topic are about the item Yearly Uptime of Four Nines
February 14, 2022 at 3:19 pm
When I first saw the question, I would have put good money on a selection of SQL-based solutions!
I slapped this one together, but I'm sure there are better ways of doing it 🙂
select MinutesOfDowntime = ((DATEDIFF(minute, GETUTCDATE(), DATEADD(year,1,GETUTCDATE()))) - ((DATEDIFF(minute, GETUTCDATE(), DATEADD(year,1,GETUTCDATE()))) * 0.9999))
February 14, 2022 at 5:50 pm
Heh... plenty of time each week to do index maintenance, right? 😀 😀 😀
After almost 25 years, I wish MS would finally study Peter Norton's works and write something much better than the God awful REORGANIZE, REBUILD, and SHRINK FILE "features". They could all be rolled into one very effectively AND seriously reduce "segment fragmentation" to boot.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 15, 2022 at 4:16 pm
Failed to specific whether it's a leap year or not.
February 15, 2022 at 4:33 pm
Could also be picky and say that 52.6 rounds to 53 minutes, not 52 minutes (and still not taking into account the variance for leap years; I think it is 52.7 minutes for a leap year, but open to better estimates....).
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply