简体   繁体   English

Wine /本机ODBC集成

[英]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. 我正在尝试连接到Linux机器上的Sage Line 50数据库(有些可怕的旧.DTA格式)。 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 Sage提供了可在Windows下使用的ODBC驱动程序,并且在这里大致说明我已经能够使用本机ODBC在Wine中获得DSN设置

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. 但是,当我尝试从脚本访问DSN时,出现unixODBC错误,“未找到数据源名称”,大概是因为unixODBC无法查看/连接到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下运行的程序似乎可以访问unixODBC DSN,但是有其他方法可以执行此操作,还是脚本本身需要在Wine中运行?

Wine doesn't export Windows ODBC drivers to *nix applications, only to Windows applications. Wine不会将Windows ODBC驱动程序导出到* nix应用程序,而仅导出到Windows应用程序。 The easiest way is probably to run your script under Wine. 最简单的方法可能是在Wine下运行脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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