Dave Willis
unread,Aug 20, 2009, 5:25:53 PM8/20/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bay Area R Helpers
Hello,
I am trying to read a long binary data field from MS Access. I am on
Vista and using R 2.9.1. Below is the R Code. When I run it, I get C+
+ runtime error as follows and then RGUI locks up. I have to kill the
process.
Thanks in advance for advice on reading long binary data (blob) from
MS Access using RODBC or any other approach.
Dave Willis
C++ Runtime Error:
----------------------------
This application has requested the Runtime to terminate in an unusual
way. Please contact the application's support team for more
information.
R code:
-----------
library(RODBC)
odbcCase13 = odbcConnectAccess("Case 13.mdb")
#returns correct result of 451
sqlQuery(odbcCase13,
"SELECT Data_Size
FROM test_data
WHERE id = 11 AND Data_Type = 1")
#causes MS Access driver to crash
#in MS Access, data is 'long binary data'.
sqlQuery(odbcCase13,
"SELECT data
FROM test_data
WHERE id = 11 AND Data_Type = 1")
close(odbcCase13)