Hello,
 
I seem to have issues with setting the driver:
 
My code:
 
    library(RJDBC)
 
 
    getStatic <- function()
    {
     # set driver
     driverClass <-
JDBC("com.ibm.db2.jcc.DB2Driver","someClassPath.jar","'")
 
     conn <- dbConnect(driverClass,"serverName")
     etc etc 
 
}
 
 
I get this error
 
> data <-getData()
Exception in thread "main" java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getConnection(DriverManager.java:545)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
Error in .local(drv, ...) : Unable to connect JDBC to serverName
 
 
 
 
Can anyone help me?
 
Thank you
 
 
Zava
--------------------------------------------------------

This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to