【发布时间】:2014-07-25 23:56:16
【问题描述】:
我已经设置了我的 ODBC 驱动程序,以便 MS Excel 可以很好地将数据导入电子表格。
但是,当我尝试与 R 建立连接时,使用
ch <- odbcConnect(leprosyDHISdb, uid = leprosyDHISid, pwd = leprosyDHISpw)
然后我得到错误
Warning messages:
1: In odbcDriverConnect("DSN=dhis2;UID=dhis2_viewer;PWD=*********") :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
2: In odbcDriverConnect("DSN=dhis2;UID=dhis2_viewer;PWD=*********") :
ODBC connection failed
什么会使 odbc 在 R 中失败,而在 Excel 中却没有?
【问题讨论】: