32-bit Text drivers (Microsoft Access , Microsoft Excel and Text files ) from a 64 bit application on windows 7

后端 未结 5 433
梦谈多话
梦谈多话 2020-12-06 08:16

Hi i have an application developed on XP with Text ODBC drivers. But when i deployed on Win 7 with office 2007, i have connection issues.



        
5条回答
  •  旧巷少年郎
    2020-12-06 09:12

    A lot of people seem desperate here, I want to offer a few solutions. But, first I want to highlight what a dated proprietary trash idea from the 90s this is.

    1. Use Unix ODBC to host the text file from Linux which the docs (seem to) claim to support an implementation of the Microsoft text driver

    2. A better option would be of course to import the CSV into PostgreSQL.

      1. I would suggest just doing this with \COPY and dropping the notion of a CSV.
      2. You can maintain the CSV with PostgreSQL acting as a server with the Foreign Data Wrapper (file_fdw).
    3. If you don't want to run an RDBMS, the modern way would be to use SQLite. This is a great idea if you don't need the server/client model.

    The ODBC->text interface is especially insane, because ODBC doesn't define configuration beyond connection (so I assume there are lots of assumptions there).

提交回复
热议问题