Re: [R] connecting to DB2 database

2007-06-15 Thread David James
Hi, On 6/14/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Thu, 14 Jun 2007, Aydemir, Zava (FID) wrote: > > > i am trying to connect to a DB2 server using the DBI library. > > The DBI *package* does not allow you to connect to anything by itself. > For that you need a driver package, curren

Re: [R] connecting to DB2 database

2007-06-14 Thread Prof Brian Ripley
On Thu, 14 Jun 2007, Aydemir, Zava (FID) wrote: > i am trying to connect to a DB2 server using the DBI library. The DBI *package* does not allow you to connect to anything by itself. For that you need a driver package, currently available for MySQL, ORACLE and SQLite (only, AFAIK). There are O

[R] connecting to DB2 database

2007-06-14 Thread Aydemir, Zava \(FID\)
Hi, i am trying to connect to a DB2 server using the DBI library. getData <- function() { driver <- dbDriver("DB2") conn <- dbConnect(driver,"server","uname","pword") data <- dbSendquery(conn, "select etc.") } When I run the function, i get the error > data <- getData(