Learn R Programming

RODBCDBI (version 0.1.1)

dbConnect,ODBCDriver-method: Connect/disconnect to a ODBC data source

Description

These methods are straight-forward implementations of the corresponding generic functions.

Usage

"dbConnect"(drv, dsn, user = NULL, password = NULL, ...)

Arguments

drv
an object of class ODBCDriver
dsn
Data source name you defined by ODBC data source administrator tool.
user
User name to connect as.
password
Password to be used if the DSN demands password authentication.
...
Other parameters passed on to methods

Examples

Run this code
## Not run: 
# # Connect to a ODBC data source
# con <- dbConnect(RODBCDBI::ODBC(), dsn="test")
# # Always cleanup by disconnecting the database
# #' dbDisconnect(con)
# ## End(Not run)

Run the code above in your browser using DataLab