public bool TestConnection() { try { CreerCommande("select 1", false); Commande.Connection.Open(); Commande.ExecuteScalar(); Commande.Connection.Close(); return(true); } catch (SqlException) { return(false); } }