public string ConnTest()
        {
            //连接测试,仅是短暂连接。所以,测试完成后,马上logoff。
            string connStatus   = "failed";
            string DbConnection = rtdbHelper.Logon();

            if (DbConnection == "logon")
            {
                connStatus = "sucess";
            }
            rtdbHelper.Logoff();
            return(connStatus);
        }
Exemple #2
0
        public string ConnTest()
        {
            string connStatus   = "failed";
            string DbConnection = rtdbHelper.Logon();

            if (DbConnection == "logon")
            {
                connStatus = "sucess";
            }
            //rtdbHelper.Logoff();
            return(connStatus);
        }