Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Friends,

Once SQL Server was down. My applications where not running.
It was reported by one of the client. Then we have sorted by communicating to DBA Team.

Is there any option find SQL Server is running or not using in an application or web-page.
Posted

1 solution

I think the easiest way is simply to try to connect to the SQL server. If the connection is successful you know that the whole stack is working and if not you get an error message which leads you forward.
 
Share this answer
 
Comments
Mehdi Gholam 12-Sep-15 2:08am    
Exactly, 5'ed
Wendelius 12-Sep-15 2:20am    
Thanks Mehdi!
Arunprasath Natarajan 12-Sep-15 2:59am    
Thanks
Wendelius 12-Sep-15 3:00am    
You're welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900