My application is a WPF C# database app that work with sql Server 2008 and Entity Framework.
if sql server Stopped or …, my application hangs but i want to Show a message to the user if this problem occurred.
Please help me how can i do it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check if sql server service is running
http://support.microsoft.com/kb/912426/en-us
and then perform simple select in try-catch block to detect, that you have user rights to database.