简体   繁体   中英

Wine / native ODBC integration

I'm trying to connect to a Sage Line 50 database (which is some awful old .DTA format) on a Linux machine. Sage provides ODBC drivers that work under Windows, and approximating the instructions here I've been able to get a DSN setup in Wine using native ODBC

When I try to access the DSN from a script though, I get a unixODBC error that "Data source name not found", presumably because unixODBC has no way to see/connect to the Wine DSN. It appears that programs running under Wine can access unixODBC DSNs, but is there any way to do it the other way, or does the script itself need to run within Wine?

Wine doesn't export Windows ODBC drivers to *nix applications, only to Windows applications. The easiest way is probably to run your script under Wine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM