Save or Read data from SQL Server in to R using ODBC package
问题 If I want to connect R to a database, do I still need to install driver for R user? I had done successful connection with server but unable to read/write/fetch the tables. library(odbc) con <- dbConnect(odbc::odbc(), .connection_string = 'driver={SQL Server};server=DW01;database=AF_DW;trusted_connection=true') Now I can see AF_DW in RStudio connections. dbListFields(con, "Visits") I can see all the variables in the table "Visits" data <- dbReadTable(con, "Visits") Got an Error: nanodbc