如何在64位窗口中将R与Access数据库连接? [英] How to connect R with Access database in 64-bit Window?
本文介绍了如何在64位窗口中将R与Access数据库连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试将R与Access数据库连接时出现错误
When I tried to connect R with Access database I get an error
odbcConnectAccess is only usable with 32-bit Windows
有人知道如何解决吗?
library(RODBC)
mdbConnect<-odbcConnectAccess("D:/SampleDB1/sampleDB1.mdb")
推荐答案
请改用odbcDriverConnect
.如果您安装了64位R,则可能必须使用32位R版本.
Use odbcDriverConnect
instead. If you have 64-bit R installed, you may have to use the 32-bit R build.
odbcDriverConnect("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=D:/SampleDB1/sampleDB1.mdb")
这篇关于如何在64位窗口中将R与Access数据库连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文