Exemplo n.º 1
0
 public bool DaJetMQExists()
 {
     if (string.IsNullOrWhiteSpace(CurrentServer))
     {
         throw new InvalidOperationException(ERROR_SERVER_IS_NOT_DEFINED);
     }
     return(SqlScripts.ExecuteScalar <bool>(ConnectionString, SqlScripts.DaJetMQExistsScript()));
 }
Exemplo n.º 2
0
        public bool DaJetMQExists()
        {
            if (string.IsNullOrWhiteSpace(CurrentServer))
            {
                throw new InvalidOperationException(ERROR_SERVER_IS_NOT_DEFINED);
            }
            bool result = false;

            try
            {
                result = SqlScripts.ExecuteScalar <bool>(ConnectionString, SqlScripts.DaJetMQExistsScript());
            }
            catch (Exception error)
            {
                // TODO: handle error
                result = false;
            }
            return(result);
        }