drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver","C:/sqljdbc_3.0/enu/sqljdbc4.jar")
conn <- dbConnect(drv, "jdbc:sqlserver://.", "Login", "password")
But i want to connect my computers local host windows aunthentication so i tried this:
conn2 <- dbConnect(drv, "jdbc:windowsauthentication://.", "admin", "123456")
What is the mistake in here? How can i connect my localhost?
Try using ODBC: 1. Create ODBC connection to localhost 2. Connect R to created ODBC, refer https://cran.r-project.org/web/packages/RODBC/RODBC.pdf
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.