Exemple #1
0
        public bool TestConnection()
        {
            try
            {
                CreerCommande("select 1", false);

                Commande.Connection.Open();
                Commande.ExecuteScalar();
                Commande.Connection.Close();

                return(true);
            }
            catch (SqlException)
            {
                return(false);
            }
        }