ron-r
1/22/2014 - 3:36 PM

Database connection

Database connection

DB <- odbcConnect("R_2",uid="xxx",pwd="xxx")
sqlTables(DB)
ndata <- sqlQuery( DB, "SELECT *  FROM DDD where CountrySeg='2'", as.is=TRUE)