![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Are there any previous experience with the application development under mono (.NET / Linux) ? We are try to establish an odbc connection to the IDS server, but the command "OdbcConnection.open" always failed. Dbaccess, isql (from unixODBC) or other SQL tools have no problems to start a database connection. Martin Thole _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#3
| |||
| |||
|
|
mono dbtest.exe DSN=Informix DSN=Informix |
|
mono dbtest.exe DSN=MySQL DSN=MySQL |
#4
| |||
| |||
|
|
Unfortunately the error message ist almost empty: mono dbtest.exe DSN=Informix DSN=Informix ERROR [I000] [unixODBC][ NO ODBC-Connection -- PROGRAMSTOP |
#5
| |||
| |||
|
|
Unfortunately the error message ist almost empty: mono dbtest.exe DSN=Informix DSN=Informix ERROR [I000] [unixODBC][ NO ODBC-Connection -- PROGRAMSTOP mono dbtest.exe DSN=MySQL DSN=MySQL ODBC-Connection open <<< OK Plattform: openSuSE 11.4 x86-64 with IDS 11.70.FC1 and C-SDK 3.70.FC1 Here the C#-Code: 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 { connection.Open(); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.WriteLine("No ODBC-Connection -- PROGRAM STOP"); return ; } Console.WriteLine("ODBC-Connection open "); } } "Fernando Nunes" <domusonline (AT) gmail (DOT) com> schrieb im Newsbeitrag news:mailman.949.1305724453.1071.informix-list (AT) iiug (DOT) org... Do you have an error message or something that we can work on? Regards. On Wed, May 18, 2011 at 2:06 PM, Martin Thole <mth (AT) o-b-s (DOT) de> wrote: Are there any previous experience with the application development under mono (.NET / Linux) ? We are try to establish an odbc connection to the IDS server, but the command "OdbcConnection.open" always failed. Dbaccess, isql (from unixODBC) or other SQL tools have no problems to start a database connection. Martin Thole _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#6
| |||
| |||
|
|
mono dbtest.exe DSN=Informix DSN=Informix |
|
mono dbtest.exe DSN=MySQL DSN=MySQL |
#7
| |||
| |||
|
|
"Martin Thole" <mth (AT) o-b-s (DOT) de> writes: Unfortunately the error message ist almost empty: mono dbtest.exe DSN=Informix DSN=Informix ERROR [I000] [unixODBC][ NO ODBC-Connection -- PROGRAMSTOP What have you got in ~/.odbc.ini (and perhaps /etc/odbc.ini)? Possibly you are missing the following fragment: [ODBC] UNICODE=UCS-2 -- http://www.greenend.org.uk/rjk/ |
#8
| |||
| |||
|
|
What have you got in ~/.odbc.ini (and perhaps /etc/odbc.ini)? Possibly you are missing the following fragment: [ODBC] UNICODE=UCS-2 Thanks for your advise. I have tried: File odbc.ini: [INFORMIX] Driver=Informix Server=ifx_server Database=vulkan UNICODE=UCS-2 // New, but still no connection CLIENT_LOCALE=en_us.8859-1 DB_LOCALE=en_us.8859-1 TRANSLATIONDLL=/opt/informix/lib/esql/igo4a304.so But still no odbc connection and still no better error message. |
![]() |
| Thread Tools | |
| Display Modes | |
| |