E
Earl
I test for a connection when I load a particular form, so as to prevent
other more ghastly exceptions further into the logic. However, I've noticed
that even with NO viable connection string, the connection object state
shows open. Anyone see something I'm overlooking here?
Here is the code:
Dim strSQLServer As New SqlConnection(strConn)
strSQLServer.Open()
Debug.WriteLine(strConn.ToString())
Debug.WriteLine(strSQLServer.State.ToString())
Here is the output:
data source=;initial catalog=;integrated security=SSPI;
Open
other more ghastly exceptions further into the logic. However, I've noticed
that even with NO viable connection string, the connection object state
shows open. Anyone see something I'm overlooking here?
Here is the code:
Dim strSQLServer As New SqlConnection(strConn)
strSQLServer.Open()
Debug.WriteLine(strConn.ToString())
Debug.WriteLine(strSQLServer.State.ToString())
Here is the output:
data source=;initial catalog=;integrated security=SSPI;
Open