Beispiel #1
0
        public DataSet GetDataSet(Socket sct, DBCommInfo.DBSQLCommandInfo cmdInfo, bool bIsSaveDataXmlFile, out string sErr)
        {
            bool    bOK      = false;
            DataSet dsResult = null;

            sErr = "";
            bOK  = ReadConfigInfo(out sErr);
            if (!bOK)
            {
                sErr = "读取客户端配置文件出错";
                return(null);
            }
            dataTableName = cmdInfo.DataTableName;
            MemoryStream ms = null;

            ms  = new MemoryStream();
            bOK = cmdInfo.GetSqlXMLText(out ms, out sErr);
            if (bOK)
            {
                if (dbstServer == DBSocketServerType.dbsstNormal)
                {
                    dsResult = GetDataFromNormalSvr(sct, ms, bIsSaveDataXmlFile, out sErr);
                }
                else
                {
                    dsResult = GetDataFromDotNetSvr(sct, ms, bIsSaveDataXmlFile, out sErr);
                }
            }
            return(dsResult);
        }
Beispiel #2
0
        public DataSet GetDataSet(DBCommInfo.DBSQLCommandInfo cmdInfo, out string sErr)
        {
            bool    bOK      = false;
            DataSet dsResult = null;

            sErr = "";

            dataTableName = cmdInfo.DataTableName;
            dsResult      = GetDataSet(null, cmdInfo, false, out sErr);
            return(dsResult);
        }
Beispiel #3
0
 public DataSet GetDataSet(DBCommInfo.DBSQLCommandInfo cmdInfo, bool bIsSaveDataXmlFile, out string sErr)
 {
     sErr = "";
     return(GetDataSet(null, cmdInfo, bIsSaveDataXmlFile, out sErr));
 }