Skip to content
Prev 299204 / 398503 Next

RODBC tables

On Jul 4, 2012, at 10:10 AM, Lorcan Treanor wrote:

            
You don't need to post the content of the "*"s. That is not needed, so you do not need to compromise your security.

This issue has come up before and I don't know, other than in one case years ago, that a definitive solution was ever posted. It seemed to be otherwise associated with 64 bit installations and there were some hints of integer overflow or an ODBC driver stability issue, but I don't recall that being confirmed. 

In the one case where Prof. Ripley had posted a work-around, it was back in 2002 and involved querying tables with an underscore ('_') in the table name. I don't know that this issue is still relevant as I use RODBC on OSX (Fedora Linux for years previously) to access Oracle tables and views and they do have underscores in the names.

Some comments:

1. You are better off subscribing to and posting this query to the r-sig-db list which is focused on R and databases. More info here:

  https://stat.ethz.ch/mailman/listinfo/r-sig-db

Be sure to include information about your OS, R version including 32 or 64 bit. See the R Posting Guide for additional information on what default info to include in a post.

2. Any chance that you do not have appropriate permission to access the "ANYTHING" table? You may want to verify that with your DBAdmin. Is that actually the name of the table?

3. Try using:

   nowfetchmewilwheaton <- sqlQuery(check, "select * from ANYTHING")
  
and see if that works. 

Regards,

Marc Schwartz