public static bool TestOutSideDatabase(string dbtype, string dbconn) { if (!string.IsNullOrEmpty(dbconn)) { switch (dbtype) { case "sql_outquery": return(dal.TestOutSql(dbconn)); case "sql_outstoredquery": return(dal.TestOutSql(dbconn)); case "ole_read": return(dal.TestOle(dbconn)); case "xml_read": return(XmlManage.CheckXmlDataSource(dbconn)); case "odbc_read": return(dal.TestOdbc(dbconn)); case "orc_read": return(dal.TestOracle(dbconn)); } } return(false); }