Currently I am doing this Try the first connection if then catch by passing the second one it seems to work but it is effection ? Since we running our server at our site and we have two public ip (2 dsl lines) therefore I think it is more reliable to use both. What do you guys think ? THANKS
Public Sub New()
strConnect = oStat.ConnectionString
Try
oConnection = New SqlConnection(strConnect)
oConnection.Open()
bConnected = True
Catch ex As Exception
oConnection = New SqlConnection(strConnect2)
oConnection.Open()
bConnected = True
'bConnected = False
UpdateEventLog("Connection to SQLServer Failed but Retry ok")
End Try
End Sub
Public Sub New()
strConnect = oStat.ConnectionString
Try
oConnection = New SqlConnection(strConnect)
oConnection.Open()
bConnected = True
Catch ex As Exception
oConnection = New SqlConnection(strConnect2)
oConnection.Open()
bConnected = True
'bConnected = False
UpdateEventLog("Connection to SQLServer Failed but Retry ok")
End Try
End Sub