R: Painfully slow read performance using RODBC & SQL Server

前端 未结 2 2016
执笔经年
执笔经年 2021-01-31 05:56

I am new to R but am interested in using Shiny to create dynamic charts using data stored in a SQL Server database. To enable interactivity, I want to bring in the raw data fro

2条回答
  •  无人共我
    2021-01-31 06:19

    I would try RJDBC http://cran.r-project.org/web/packages/RJDBC/RJDBC.pdf

    with these drivers https://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx

    library(RJDBC)
    drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver","/sqljdbc4.jar") 
    con <- dbConnect(drv, "jdbc:sqlserver://server.location", "username", "password")
    dbGetQuery(con, "select column_name from table")
    

提交回复
热议问题