Connect Informix .NET via DSN

0

Good afternoon,

I've been trying to connect an application to an Informix database for some days, but I can not do it at all.

I'm using Visual Studio 2017 using ASP.NET Framework 4.6. I tried to find solutions on the IBM site, but that site does not help much, everything is spread and ends up getting more confused.

I have installed the SDK 4.10.FC12 and I was able to mount a connection through the ODBC Data Source Administrator (native to windows)

My question is: how can I access this DSN connection via visual studio in the .NET application?

If anyone knows, please help me! Thank you :)

    
asked by anonymous 05.11.2018 / 14:58

1 answer

1

You can try a connection using odbconnection :

 OdbcConnection conn = new OdbcConnection(@"DSN=suaconexaoodbc;UID={usuario};PWD={senha};");

More information:

link

    
05.11.2018 / 16:23