I looked the Informix Client 2.9 SDK, I found and installed in my computer. Now in the Visual Web Developer, add the reference Ibm.Data.Informix.dll for use the functions IfxConnection, IfxCommand.... but when I compiled my website, appear this message:
The type initializer for 'IBM.Data.Informix.IfxConnection' threw an exception.
This message appear in the line:
IfxConnection ocon = new IfxConnection(infcon)
Look my code and you tell me, Where is the error?
//------------------------------------------------------------------------------------------------------------------
using IBM.Data.Informix
...
...
...
you may be able to use there dll and reference it but it would be faster to use OLEDB. if you need help with there dll then you will have to go to there support for that.
OLEDB can be used on most db's if not all..all your doing is access data from a table that's it. the reason you should not use OLEDB with sql server is performance I think.
look at my example and also ca8msm providing a good link to the help files. search around, there are TONS of examples on this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.