0

I am unable to connect to MS SQL server from shinyapps.io From Windows using sqlOdbcDriver. This works perfectly in RStudio while running locally but when I tried to deploy in shiny server. I get the following error:

ERROR: first argument is not an open RODBC channel

Pls find the below code snippet:

con <- odbcDriverConnect("driver=SQL Server;database=<dbname>;server=<server name>;Uid=<uid>; Pwd=<pwd>")

Note : I am using Windows to run R.

Any help is highly appreciated. Thanks in advance

Hong Ooi
  • 56,353
  • 13
  • 134
  • 187
keeplearning
  • 369
  • 2
  • 6
  • 17

0 Answers0