locked
Connect to Informix DB from C# smart device application RRS feed

  • Question

  • Hi,

    I am developing a smart device application using C# and .NET compact framework 3.5 on windows mobile 6.1 and I need to connect and communicate with Informix DB in my application. I need to know how to do it as I tried to download Infomix Client SDK and to use the IBM.Data.Informix.dll but it didn't work on compact framework and it made the size of my .CAB very large (35MB) for a windows mobile app.

    Thank you for your help.


    eng.Sherif M. Gad
    Sunday, November 13, 2011 9:11 AM

Answers

  • You would need to find and purchase NETCF compatible ADO.Net data provider for that database. In theory you can write one yourself but that probably will be more complex than your entire project and is beyond capabilities of average developer.

    If you can not find one (e.g. there's no such thing or whatever other reason) then the only way is to implement Web service proxy running on your web server. It would connect to the database using desktop ADO.Net and then pass data to the smart device, e.g. as DataSet.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Proposed as answer by Jesse Jiang Tuesday, November 15, 2011 2:49 AM
    • Marked as answer by Jesse Jiang Monday, November 21, 2011 7:24 AM
    Sunday, November 13, 2011 6:15 PM