Thank you, John.
Your query works but in case if SQL server is down we won't be able to track it.
So any solutions are welcome; when SQL server stops 🙂
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."