I\'m writing an application where a user provides a connection string manually and I\'m wondering if there is any way that I could validate the connection string - I mean ch
If the goal is validity and not existence, the following will do the trick:
try { var conn = new SqlConnection(TxtConnection.Text); } catch (Exception) { return false; } return true;