shawne
Well-known member
Anyone have a clue why the top function works fine, but the bottom function results in a StackOverFlow? dbServer, dbName, dbIdentification and dbPassword are the same values when either function is called. I'm sure the answer is staring me right in the face, but i'll be damned if I can see it.
VB.NET:
Private Function sqlConnStr() As String
sqlConnStr = "Server=" & dbServer & ";" & "Database=" & dbName & ";Integrated Security=SSPI"
If InStr(UCase(dbIdentification), "N/A", CompareMethod.Binary) = False Then
sqlConnStr = sqlConnStr & ";Uid=" & dbIdentification & ";Pwd=" & dbPassword
End If
End Function
Private Function ADOConnStr() As String
ADOConnStr = "Driver=" & dbDriver & ";Server=" & dbServer & ";Database=" & dbName
If InStr(UCase(dbIdentification), "N/A", CompareMethod.Binary) = False Then
ADOConnStr = ADOConnStr() & ";Uid=" & dbIdentification & ";Pwd=" & dbPassword
End If
End Function