I\'m trying to connect to a Microsoft SQL Server from R on Mac/Linux, and I have problems with RJDBC. When I\'ve downloaded both Microsoft\'s driver and JTDS, but none of th
I had the exact same problem. This is a jTDS solution:
~/Downloads/jtds-1.2.8-dist/jtds-1.2.8.jar. Note: Other versions may not work!R, set up driver: drv <- JDBC("net.sourceforge.jtds.jdbc.Driver", "~/Downloads/jtds-1.2.8-dist/jtds-1.2.8.jar").conn <- dbConnect(drv, "jdbc:jtds:sqlserver://servername:port;DatabaseName=databasename", domain="windows domain", user="user", password="pwd").Here the field domain was messing things up. You can't put domain\username as your user. You have to define them separately according to the jTDS driver implementation.