SQL Server RODBC Connection

后端 未结 5 632
滥情空心
滥情空心 2020-11-28 03:10

Does anyone have a connection string example for using RODBC and connecting to MS SQL Server 2005 or 2008.

Thank you.

5条回答
  •  借酒劲吻你
    2020-11-28 03:34

    Taken from a posting to r-help:

     library(RODBC)
     channel <- odbcDriverConnect("driver=SQL Server;server=01wh155073")
     initdata<- sqlQuery(channel,paste("select * from  test_DB .. 
     test_vikrant"))
     dim(initdata)
     odbcClose(channel)
    

提交回复
热议问题