Displaying 1 result from an estimated 1 matches for "oddbc".
Did you mean:
odbc
2009 May 28
1
RODBC package: how to check whether connection is open
What is the recommended way of checking whether an RODBC connection is open?
Since odbcValidChannel is not exported from namespace RODBC, I suppose I
shouldn't be using it.
This is the best I could come up with, but it seems a bit 'dirty' to be
using a tryCatch for something like this:
odbcOpenp <- function(conn)
tryCatch({odbcGetInfo(conn);TRUE},error=function(...)FALSE)