Connect to MSSQL using DBI
问题 I can not connect to MSSQL using DBI package. I am trying the way shown in package itself m <- dbDriver("RODBC") # error Error: could not find function "RODBC" # open the connection using user, passsword, etc., as # specified in the file \file{\$HOME/.my.cnf} con <- dbConnect(m, dsn="data.source", uid="user", pwd="password")) Any help appreciated. Thanks 回答1: It looks like there used to be a RODBC driver for DBI, but not any more: http://cran.r-project.org/src/contrib/Archive/DBI.RODBC/ A bit