Currently is what we have. How do I pass another connection string if the first connection string failed ? Thanks. We run the sql server at our place and we have 2 ips that is why I need to use the ip if one doesn't work
Public Sub New()
strConnect = oStat.ConnectionString
Try
oConnection = New SqlConnection(strConnect)
oConnection.Open()
bConnected = True
Catch ex As Exception
bConnected = False
UpdateEventLog("Connection to SQLServerFailed")
End Try
End Sub
Public Sub New()
strConnect = oStat.ConnectionString
Try
oConnection = New SqlConnection(strConnect)
oConnection.Open()
bConnected = True
Catch ex As Exception
bConnected = False
UpdateEventLog("Connection to SQLServerFailed")
End Try
End Sub