Actually there is an easier way if you do not want to parse it yourself. You can pass the connection string into the SqlConnectionStringBuilder class and it will parse the string for you into properties:Dim connInfo As New SqlClient.SqlConnectionStringBuilder(DataBasics.DataSources(0).ConnectionString)
Dim msg As String = ""
msg &= connInfo.DataSource & ControlChars.CrLf
msg &= connInfo.InitialCatalog & ControlChars.CrLf
msg &= connInfo.UserID & ControlChars.CrLf
msg &= connInfo.Password & ControlChars.CrLf
msg &= connInfo.IntegratedSecurity.ToString()
MsgBox(msg)
Greg's solution is always a good workaround though if this doesn't give you what you need.