public static string fncGetConnection() { string sCurrentConnection = ""; try { using (SqlConnection con = new SqlConnection(Server)) { con.Open(); sCurrentConnection = Server; } } catch (SqlException ex) { using (SqlConnection con = new SqlConnection(Local)) { con.Open(); sCurrentConnection = Local; } } return sCurrentConnection; }
;Connection Timeout=10
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)