Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 08-06-2009
Join Date: Jan 2009
Posts: 180
Sqlconnection state in C#.Net

I have created a sql connection. But when the network cable is unplugged it doesn't detect the state of the connection and states as open. Is there a way wherein i can detect the network status instantly so when i use this method it would return the network status as open or close..? hope someone help me...
Reply With Quote
Old 08-06-2009
Join Date: Apr 2008
Posts: 2,139
Re: Sqlconnection state in C#.Net

There is no way to identify is the network cable is plugged or unplugged, you can try this out. Send a query to the server everytime and if it returns and error then you can figure it out yourself... Or run some server query at regular intervals to make sure that the connection is up and running...
Reply With Quote

  TechArena Community > Software > Windows Software
Tags: ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Sqlconnection state in C#.Net"
Thread Thread Starter Forum Replies Last Post
State of the LED panel in MSI Suigetsu Monitor & Video Cards 5 11-03-2011 10:15 PM
State variables in ASP.net Athreya Software Development 3 12-01-2011 01:15 PM
Use of SqlConnection Class Khan Baba Software Development 5 29-01-2010 12:19 PM
FTP problem - unable to make the session state request to the session state server. Benito Software Development 3 31-07-2009 01:09 PM
Nortel and India's Chhattisgarh State Enhance State - Wide Communications With WiMAX Broad-Man India BroadBand 4 26-11-2008 01:41 PM

All times are GMT +5.5. The time now is 05:54 PM.