我很难找到一套工具/配置,这些工具/配置可以从cygwin下的R连接到Microsoft。
我在使用RODBC库
当我使用windows下的R时,我可以使用如下语句成功地连接:
db.connex.string <- 'driver={SQL Server};server=machine_name;database=db_name;trusted_connection=true'
db.connex <- odbcDriverConnect(db.connex.string)当我在cygwin下尝试在R中使用相同的命令时,我会得到一系列的警告和错误,这些警告和错误开始于:
> warnings()
Warning messages:
1: In odbcDriverConnect(db.connex.string) :
[RODBC] ERROR: state 00000, code 1807981029, message [iODBC][Driver Manager]No such file or directory
2: In odbcDriverConnect(db.connex.string) :
[RODBC] ERROR: state IM003, code 1807981029, message [iODBC][Driver Manager]Specified driver could not be loaded
3: In odbcDriverConnect(db.connex.string) :
[RODBC] ERROR: state IM003, code 1807981029, message [iODBC][Driver Manager]Specified driver could not be loaded
4: In odbcDriverConnect(db.connex.string) :
[RODBC] ERROR: state IM003, code 1807981029, message [iODBC][Driver Manager]Specified driver could not be loaded任何帮助都是非常感谢的。
发布于 2013-08-25 11:38:42
在Cygwin下,你的R是在抱怨它根本找不到一个司机。请确保检查以下内容:
我还没有找到很多关于在Cygwin上安装odbcUnix的参考,但似乎是可能的。如果您想连接的是MicroSoft Server,那么它们的为linux发布了一个特定于MSSQL的驱动程序在Linux上运行得很好,我建议在FreeTDS之上使用。但我不知道是否可以安装在Cygwin上。
https://stackoverflow.com/questions/18412259
复制相似问题