Пример #1
0
        public bool ExecProc(ClsQuery clsQuery, string strProc, ref List <SqlParameter> dbParam, out SqlCommand cmdOut, out string ErrMsg)
        {
            ErrMsg = "";
            bool result = true;

            cmdOut = new System.Data.SqlClient.SqlCommand();

            try
            {
                result = clsQuery.ExecProc(strProc, ref dbParam, out cmdOut, out ErrMsg);
            }
            catch (Exception ex)
            {
                ErrMsg = ex.Message;
                result = false;
            }

            return(result);
        }
Пример #2
0
        private bool ExecProc(ClsQuery clsQuery, string strProc, ref List <SqlParameter> dbParam, out DataSet dsResult, out SqlCommand cmdOut, out string ErrMsg)
        {
            dsResult = null;
            ErrMsg   = "";
            bool result = true;

            cmdOut = new SqlCommand();

            try
            {
                result = clsQuery.ExecProc(strProc, ref dbParam, out dsResult, out cmdOut, out ErrMsg);
            }
            catch (Exception ex)
            {
                ErrMsg = ex.Message;
                result = false;
            }

            return(result);
        }