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

            db.Connect();
            if (!db.IsConnected)
            {
                return(null);
            }
            DataTable dt = db.GetDataTable(sSql);

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