search for: odbcopenp

Displaying 1 result from an estimated 1 matches for "odbcopenp".

2009 May 28
1
RODBC package: how to check whether connection is open
...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) Suggestions? -s [[alternative HTML version deleted]]