public static object GetValue(String cnName, string sSql) { SqlBase db = NewDB(cnName); db.Connect(); if (!db.IsConnected) { return(-1); } object oR = db.GetValue(sSql); db.Close(); return(oR); }