예제 #1
0
        public bool EjecutaDML(string _sStore)
        {
            _bResp = false;

            try
            {
                _cBD = new ControladorSQL(_sConexion);
                if (_cBD.Exception == null)
                {
                    _bResp = _cBD.ExecutequeryParams(_sStore, _lParameters);
                }
                _Exception = _cBD.Exception;
            }
            catch (Exception _ex)
            {
                _Exception = _ex;
            }
            finally
            {
                _cBD = null;
            }
            return(_bResp);
        }
예제 #2
0
        public DataSet Ejecuta(string _sStore)
        {
            _ds = null;

            try
            {
                _cBD = new ControladorSQL(_sConexion);
                if (_cBD.Exception == null)
                {
                    _ds = _cBD.Execute(_sStore, _lParameters);
                }
                _Exception = _cBD.Exception;
            }
            catch (Exception _ex)
            {
                _Exception = _ex;
            }
            finally
            {
                _cBD = null;
            }
            return(_ds);
        }