odbcClose: ODBC Close Connections

Description Usage Arguments Details Value Author(s) See Also

Description

Close connections to ODBC databases.

Usage

1
2
3
4
5
6
odbcClose(channel)

## S3 method for class 'RODBC'
close(con, ...)

odbcCloseAll()

Arguments

channel, con

RODBC connection object as returned by odbcConnect.

...

additional arguments passed from the generic.

Details

odbcClose cleans up and frees resources. It is also the method for the generic function close.

odbcCloseAll closes all open channels (amongst the first 1000 used in the session).

Channels are closed at the end of an R session, and may also be closed by garbage collection if no object refers to them. In both cases a warning is given (but may not be seen at the end of a console session).

Value

Function odbcClose returns a logical indicating if it succeeded, invisibly unless a warning is given.

The close method returns 0 (success) or 1, invisibly.

Author(s)

Michael Lapsley and Brian Ripley

See Also

odbcConnect



Search within the RODBC package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.