I am working against an Informix database with C # ASP.NET 4.0 through an ODBC connection. This database often changes, so I read which DBs that are installed from the sysmaster table.
Depending on the choice that my user makes, I need to configure the ODBC connection to the selected database or change the current connection in order to change it from the Systmaster database to the selected one.
Has anyone figured out how to do this? I suspect you need to establish a temporary ODBC connection. Also in Visual Studio, in the properties of my ODBC connection, I have a connection string that looks like this:
Dsn=Informix;uid=xxxxx;database=sysmaster;host=10.10.10.10;srvr=testdb1;serv=3000;pro=onsoctcp;cloc=en_US.819;dloc=en_US.819;vmb=0;curb=0;scur=0;icur=0;oac=1;optofc=0;rkc=0;odtyp=0;ddfp=0;dnl=0;rcwc=0
I looked at the library for direct connection without ODBC to informix, but with success.
Thanks Stefan
source share