Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

r dbConnect(odbc::odbc() to ms sql server remote

library(odbc)con <- dbConnect(odbc(),                 Driver = "SQLServer",                 Server = "mysqlhost",                 Database = "mydbname",                 UID = "myuser",                 PWD = rstudioapi::askForPassword("Database password")                 Port = 1433)
Source by support.rstudio.com #
 
PREVIOUS NEXT
Tagged: #ms #sql #server #remote
ADD COMMENT
Topic
Name
5+6 =