Displaying 20 results from an estimated 9000 matches similar to: "RODBC connectivity"
2009 Sep 08
0
RODBC version 1.3-0 crashes with systemtables using SQL server 2000
Dear all,
I need to test for the existence of an index on a table. This cannot be done with sqlPrimaryKeys as it is not a primary key. Therefore I select directly from the systemtable of SQL-Server 2000 named sysindexes. This works well with RODBC Version 1.2-5 but not with version 1.3-0.
Here is the code of the test example:
sink(file = "proto.txt", append = FALSE, type =
2007 Jan 30
0
calloc bug in RODBC 1.1-7 and later?
I'm trying to load Affy Annotation data from an Access database into R using
RODBC. This has worked fine for quite some time. The bug seems to be
correlated to RODBC versions 1.1-7 and later.
Works fine: R 2.2.0 with RODBC 1.1-4; R 2.3.0 or R 2.4.1 with RODBC 1.1-6
Fails: R 2.3.1 with RDOBC 1.1-7; R 2.4.1 with RODC 1.1-7 or 1.1-8
Details
=====
This works fine:
Version 2.2.0
2008 Sep 24
0
Error results from MS Access via RODBC
I have an MS Access database with one table and one column holding rep(1:10)
I use:
library(RODBC)
channel <- odbcConnect("test")
sqlQuery(channel, paste("SELECT col FROM tblTest"), believeNRows=FALSE)
and get:
49
50
51
52
53
54
55
56
57
12337
What? The above should, of course, read:
1
2
3
4
5
6
7
8
9
10
I tried the 'odbcQuery' /
2000 Mar 08
0
RODBC: follow up
Hi Michael,
Here is the result of my first testing:
(0) Dr. Watson
Sorry, I should have given a more precise description: by default in R
exists a function with the name 'table', if you use this name as in
odbcPrimaryKeys(0, table)
a Dr. Watson occurs, because table does not give a table name.
However, it is always a good idea to prevent Dr. Watsons, even if it is
triggered by a
2015 Apr 27
2
Como conectar R con una base de datos Access en Windows 64-bit (RODBC package)
Hola a tod en s,
Tengo un problema a la hora de conectar una base de datos (*.mdb) de Access
a RStudio utilizando windows 64-bit. Con el paquete RODBC utilizo el
siguiente script que devuelve el error que indico:
mdbConnect <- odbcConnectAccess("C:/Users/database.mdb")
Error in
odbcConnectAccess("C:/Users/Isa/FPI-AZTI/JUVENA/Databases/MEGASCOPE_JUVENA2014.mdb")
:
2012 Nov 26
2
puzzling RODBC error
Dear all,
I'm trying to connect to an MSAccess database (ArcGIS personal geodatabase). I keep getting an error about the channel when using sqlQuery(). However, sqlTables() does not complain about the channel and lists all tables in the database. If I try sqlFetch(), then R crashes.
I'm happy to hear suggestions on how to solve this.
Best regards,
Thierry
> MDB <-
2010 Oct 22
1
RODBC: data base with decimal point ","
Dear R-users,
I am working with R version 2.10.1 and package RODBC Version: 1.3-2 under windows.
Say I have a table "testtable" (in an Access data base) with 3 columns and 1 row that looks like this:
X Y Z
0012345 42 42,1
The columns are of these types: X - character, Y - Long Integer, Z - Decimal.
I use RODBC to get these data into R:
> library(RODBC)
>
2002 Aug 28
1
RODBC: sqlFetch and its argument sqtable
Calling function "sqlFetch" in library(RODBC) and specifying a character
string as 2nd argument, I get an error I don't understand:
library(RODBC)
channel <- odbcConnect("mydatabase.mdb", case="msaccess")
sqlFetch(channel, "mytable")
# this works fine
tabname <- "mytable"; sqlFetch(channel, tabname)
# this gives an error:
# Error in
2011 Dec 04
3
RODBC connect to Excel (64-bit Windows 7)
Hi to all.
I have a problem to connect to an Excel database using RODBC.
Namely, I am using 64-bit R 2.14.0, under Windows 7 and I tried following:
library(RODBC)
> channel <- odbcConnectExcel("results.xlsx")
Error in odbcConnectExcel("results.xlsx") :
odbcConnectExcel is only usable with 32-bit Windows # ok this is
clear why it doesn't work
> channel
2010 Nov 25
1
RODBC
Hi,
I am running the RODBC examples form the help guide. I am trying to
UPDATE a table in an Access data base but I am having an error.
library(RODBC)
library(termstrc)
path = getwd()
setwd(getwd())
dbName = "data.mdb"
pathdbname = paste(path,"/",dbName,sep="")
accesChannel = odbcConnectAccess(pathdbname, uid = "", pwd = "")
2008 Apr 30
1
+ and - in RODBC : no longer considered factors
I have a large Sweave report that reads data from a database file. Some of
the columns are 1-character strings containing only +, - or NA. An example
for such a table is shown below, and can be downloaded for easier testing
from
http://www.menne-biomed.de/uni/test.zip
(For security reasons, the file is zipped)
table test
hp hp1
+ a
- +
library(RODBC)
channel =
2012 Mar 28
1
Is it possible to de-select with sqlQuery from the RODBC library?
Dear R-list,
I'm queering a M$ Access database with the sqlQuery function from the RODBC library. As I cannot make a working example with a database here is an illustrative example,
library(RODBC)
mdbConnect<-odbcConnectAccess("S:/data/ ... /databse.mdb")
data <- sqlQuery(mdbConnect, "select id, DOB, V1, V2, ..., V1009, V1011, V1013 from someTable")
I want
2006 Oct 20
2
RODBC problem
In a mdb table, I have a text field with values of 1, 2, .... When I
use rodbc to read it into R, it becomes numeric. Is it a bug or
something?
Thanks.
2012 Jul 11
2
How to connect .mdb file
Hi, I'm currently having some problem connect .mdb file into R.
I've installed the RODBC packages and I do the code this way:
channel <- odbcConnectAccess("C:/Users/Documents/XYZ")
channel
and it gave me this :
RODBC Connection 3
Details:
case=nochange
DBQ=C:\USers\JieYi\Documents\NYP\IPP\GCR
Driver={Microsoft Access Driver (*.mdb)}
DriverId=25
FIL=MS Access
2013 Apr 15
1
create an access file
Hi there,
I have seen this post.
https://stat.ethz.ch/pipermail/r-help/2007-June/133606.html
have odbc installed in my machine. Now I have the following message:
channel2 <- odbcDriverConnect("test.mdb")Warning messages:1: In
odbcDriverConnect("test.mdb") :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name not found and no
2017 Aug 31
2
Conectar Access con R
Buenas,
Estoy usando R para conectarlo con ACCESS pero me da error:
> conexion<-odbcConnect("ProductionReport.mdb")
Warning messages:
1: In RODBC::odbcDriverConnect("DSN=ProductionReport.mdb") :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][Administrador de controladores ODBC] No se encuentra el nombre del origen de datos y no se especificó ningún
2007 Aug 14
4
Import of Access data via RODBC changes column name ("NO" to "Expr1014") and the content of the column
Dear all,
I have some problems with importing data from an Access data base via
RODBC to R. The data base contains several tables, which all are
imported consecutively. One table has a column with column name "NO". If
I run the code attached on the bottom of the mail I get no complain, but
the column name (name of the respective vector of the data.frame) is
"Expr1014" instead
2006 Mar 23
0
sqlSave
Dear Tobias,
I finally succeeded in exporting my dataframes from R into Access with
this script:
library(RODBC)
canal <- odbcConnectAccess("D:/Floristique.mdb")
sqlSave(channel=canal, dat=flore, tablename="Floristique", rownames=F,
safer=F, fast=F,
varTypes=c(dates="Date"))
odbcClose(canal)
My problem in exporting my dataframe "flore" seems to
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)
2010 Feb 11
3
Creating a new Access database with R
I am facing the same problem as well, I would like to code with following concept but wondering how to cope it.
if (*mdb file exist)
{ add new row/col }
else
{ add new *mdb file }
----------------------------------------------------------------------------------------------
From: Uri Shimron <UriShimron_at_optiver.com>
Date: Thu 21 Sep 2006 - 13:27:35 GMT
First of all,