Exemplo n.º 1
0
        public static Boolean CheckDBAccessSet()
        {
            Boolean blnRet = false;
            RegistryEdit objRegistryEdit = new RegistryEdit("TEC.FHIOL");
            if (objRegistryEdit.Read("s") != null && objRegistryEdit.Read("s") != "" &&
                objRegistryEdit.Read("d") != null && objRegistryEdit.Read("d") != "" &&
                objRegistryEdit.Read("u") != null && objRegistryEdit.Read("u") != "" &&
                objRegistryEdit.Read("p") != null && objRegistryEdit.Read("p") != "")
                blnRet = true;
            return blnRet;

        }
Exemplo n.º 2
0
        public static Boolean CheckDBAccess()
        {
            Boolean blnRet = false;
            RegistryEdit objRegistryEdit = new RegistryEdit("TEC.FHIOL");

            String DBServer = objRegistryEdit.Read("cam_s");
            String DBName = objRegistryEdit.Read("cam_d");
            String DBUser = objRegistryEdit.Read("cam_u");
            String DBPassword = objRegistryEdit.Read("cam_p");

            if (CheckDBConnection(CryptoEngine.Decrypt(DBServer), CryptoEngine.Decrypt(DBName), CryptoEngine.Decrypt(DBUser), CryptoEngine.Decrypt(DBPassword)))
                blnRet = true;
            return blnRet;
        }