I have a scenario in My programmer to check database connection and if database connection available then proceed else try to reconnect it. I want to fetch DB time using "SELECT GETDATE()" statement. First time when DB connects it runs successfully and when after disconnect and connect DB and trying to fetch DB time it give me below error.
A transport-level error has occurred when sending the request to the server. (Provide: TCP Provider, error: 0 – An existing connection was forcibly closed by the remote host).
Can anyone help me to sort out this Problem?