Re: CSK/ICONNECT
Posted in 1999
Topics: Storage & Space Management, Security, Permissions & Auditing, Networking & sqlhosts Configuration, Internationalization & Character Sets
Ok!!! 1) Setting environment variables informix (DB_LOACLE, CLIENT_LOCALE, INFORMIXDIR, DBLANG, INFORMIXSERVER, INFORMIXSQLHOSTS ... )!!! 2) See the CPPDOC.TXT for more information (Release->04e4->CPPDOC.TXT ->:ACCESSING SMART LARGE OBJECTS IN NONDEFAULT SBSPACES): main(int argc, const char *argv[]) { ITDBInfo dbinfo; ITConnection conn; ... ... ... cout << " INFORMIXSERVER : "; cin.getline(buf, sizeof(buf)); if (!dbinfo.SetSystem(buf)){ <---- Attention !!! cout << "Could not set system " << endl; return (1); } cout << " DATABASE : "; cin.getline(buf, sizeof(buf)); if (!dbinfo.SetDatabase(buf)){ <---- Attention !!! cout << "Could not set database " << endl; return (1); } cout << " USER : "; cin.getline(buf, sizeof(buf)); if (!dbinfo.SetUser(buf)){ <---- Attention !!! cout << "Could not set user " << endl; return (1); } cout << " PASSWORD : "; cin.getline(buf, sizeof(buf)); if (!dbinfo.SetPassword(buf)){ <---- Attention !!! cout << "Could not set password " << endl; return (1); } if (!conn.Open(dbinfo) || conn.Error()) { if (!conn.Open() || conn.Error()) { cout << "Could not open database " << endl; return (1); } ... ... cout << "Start Transaction ..." << endl; if (!conn.SetTransaction(ITConnection::Begin)) { cout << "Could not start transaction " << endl; return (1); } ... } ================================== Vadim Golovsky, gvf@entel.kiev.ua Tel:(38044) 277-8528, 245-7525 Fax:(38044) 245-7714 Chief Specialist EnranTelecom Ukraine, Kiev, 27 Klimenko str.