Exemplo n.º 1
0
        public string GetDBConnectionString()
        {
            string decryptedPassword = SysUtil.DecryptDES(_encryptPassword, "quality");

            return(string.Format(@"Data Source={0},{1};Network Library=DBMSSOCN;Initial Catalog=qualityDB;User ID={2};Password={3};", _ipAddr, _port, _username, decryptedPassword));
        }
Exemplo n.º 2
0
        public static string GetDBConnectionString(string ip, string port, string username, string encrptyPassword)
        {
            string decryptedPassword = SysUtil.DecryptDES(encrptyPassword, "quality");

            return(string.Format(@"Data Source={0},{1};Network Library=DBMSSOCN;Initial Catalog=qualityDB;User ID={2};Password={3};", ip, port, username, decryptedPassword));
        }