Is it possible to check if there is a connection to a SQL database exists before opening a new connection?
preguntado el 02 de febrero de 12 a las 10:02
thats why connection pooling is exists for. he checks it and if not - he re-open it.
also you can check it in the web.config for existing entry,.
Create a method with try catch block. Try connects and returns true, catch returns false. You could even set a shorter timeout so you aren't waiting 90 seconds.