Introduction: When your SQL instance was last restarted? I understand it is very simple script but we often forget simple…