示例#1
0
        public static DataSet GetDataSet(String cnName, string sSql)
        {
            SqlBase db = NewDB(cnName);

            db.Connect();
            if (!db.IsConnected)
            {
                return(null);
            }
            DataSet ds = db.GetDataSet(sSql);

            db.Close();
            return(ds);
        }