有没有好的指南链接可以教我在Mac上使用R连接到Microsoft SQL Server? 我已经找了很久,似乎找不到适合我的内容。
有没有好的指南链接可以教我在Mac上使用R连接到Microsoft SQL Server? 我已经找了很久,似乎找不到适合我的内容。
Integrated Security=NTLM
(我认为可信连接也可以这样做)。
https://community.rstudio.com/t/rstudio-database-connections-using-windows-authentication/7465/32
我从未在生活中使用过Mac机器,但对于R和SQL,我认为你所使用的机器种类并不重要。以下方法适用于我。
library(RODBC)
dbconnection <- odbcDriverConnect("Driver=ODBC Driver 11 for SQL Server;Server=Server_Name\\SQLEXPRESS; Database=TestDB;Uid=; Pwd=; trusted_connection=yes")
initdata <- sqlQuery(dbconnection,paste("select * from MyTable;"))
odbcClose(channel)
RODBC odbcDriverConnect() 连接错误
https://andersspur.wordpress.com/2013/11/26/connect-r-to-sql-server-2012-and-14/
在你的一侧试试看。
RODBC
或RJDBC
软件包进行连接。这个链接可能会有所帮助。 - hvollmeier