In my method, if I find that connection (System.Data.SqlClient.SqlConnection
) which I received has
State = Closed
orState = Broken
which of the following approaches is correct?
Call
Open()
to reconnect and continue with execution of subsequent statements. (Of course, I can also give theOpen()
pre-configured number of retries.)Throw such a connection away as unrecoverable and get brand new one.
(If these approaches are equal, I would prefer the first as easier to implement.)