Failure to connect to odbc database in R

前端 未结 6 520
难免孤独
难免孤独 2020-12-02 00:00

I\'ve been trying to connect my company\'s DMS to R using the odbcConnect command, but get the following message:

myConn <-odbcConnect(\"NZSQ         


        
6条回答
  •  悲哀的现实
    2020-12-02 00:17

    I was trying to access SQL Server database and got the same error. After using the correct format of db connection, I got access to my sql server database.

    dbhandle <- odbcDriverConnect("Driver={SQL Server};Server=mydbhost;Database=mydbname;Trusted_Connection=Yes")
    

提交回复
热议问题