Informix CLI on UNIX Systems
Posted in 2000
Topics: Connectivity: ODBC / JDBC / .NET, Platform-Specific Issues
I got problems using CLI without the odbc.ini file on Solaris. I've tried the following: ... UCHAR connStr[] = "DRIVER={/databases/informix_7.3/lib/cli/iclis09a.so};"; "Database=test;" "Host=testHost;" "UID=testUser;" "PWD=testUser;" "Service=testHost_shm;" "Protocol=onipcshm;" "Server=testHostshm;"; rc = SQLDriverConnect( env->hdbc, 0, connStr, SQL_NTS, outConn, MAXCONNSTR, &cbOutConn, SQL_DRIVER_NOPROMPT ); I always get the error message: ERROR: -11060: 37000 : [Informix][Odbc Informix Driver]General error. Insufficient Connection information was supplied Everything works fine if I add a string DSN="Informix7", but I would like to avoid this. Are there any possibilities to use CLI without an odbc.ini file? -- Hermann