[Mono-list] Odbc connection with unixODBC and Informix IDS

MartinThole info at o-b-s.de
Wed May 18 08:37:34 EDT 2011

I am trying to open an odbc connection:
 - with DSN=MySQL:   => ok / no errors
 - with DSN=Informix: => error / no connection

ERROR [I000] [unixODBC][ (blank) ]   == no error messages :-((

But with the unixODBC tool "isql" a connect to "DSN=Informix" is no problem,
only "mono dbtest.exe  DSN=Informix" isn't connecting.

Database:  Informix IDS 11.70.FC1  (64 bit) with
ODBC:    Informix C-SDK 3.70.FC1 with unixODBC 
OS:  openSuSE 11.4 x86-64 with Kernel 

Martin Thole

Code C#:

using System;
using System.Data;
using System.Data.Odbc;
public class DBTest
 static public void Main(string[] args)
        string strConnection;
        strConnection = args[0];
        Console.WriteLine (strConnection);
        OdbcConnection connection = new OdbcConnection(strConnection);
        try {
        catch (Exception ex)
            Console.WriteLine("No ODBC-Connection -- PROGRAM STOP");
            return ;
        Console.WriteLine("ODBC-Connection open ");
        } }

View this message in context: http://mono.1490590.n4.nabble.com/Odbc-connection-with-unixODBC-and-Informix-IDS-tp3532513p3532513.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list