R中的OLEDB连接 [英] OLEDB connection in R
问题描述
有人知道用R直接连接到OLEDB数据源的任何方法吗?
Does anyone know of any way to connect to an OLEDB data source directly in R?
我尝试过google,CRAN和rseek都没有运气.
I've tried google, CRAN and rseek with no luck whatsoever.
推荐答案
将数据保存到SQL Server的ODBC和OLEDB的一个很好的替代方法是使用GitHub上的rsqlserver软件包将BCP替换为BCP:
A good alternative to both ODBC and OLEDB for saving data to SQL Server is to BCP using the rsqlserver package that is on GitHub here: https://github.com/agstudy/rsqlserver
如果您愿意,可以通过ODBC提取数据,这会非常快,但是(通过我的测试)通过ODBC将数据发送到SQL Server将花费很长时间,因此BCP是一个不错的选择.
You can pull down data via ODBC if you'd like which would be pretty fast, but sending data to SQL Server via ODBC will take a long time (in my tests), so BCP is a great option.
安装有点困难(需要.NET和rtools),但是一旦安装成功,它的速度将非常快.
It's a little difficult to install (requires .NET and rtools), but once you get it going it's blazing fast.
这篇关于R中的OLEDB连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!