Displaying 20 results from an estimated 1000 matches similar to: "RODBC"
2009 Mar 01
1
Temporary tables with Microsoft SQL?
I can create a temp table with MySQL and R DBI[1], but I don't see how
to do the same with Microsoft SQL 2005 and RODBC.  R 2.8.1 creates the
table, but then it can never see it.  I'm looking to avoid replacing
the convenience functions like sqlSave().
[1] https://stat.ethz.ch/pipermail/r-help/2009-March/190033.html
> library(RODBC)
> channel <-
2006 Jul 25
1
[RODBC] ERROR: Could not SQLExecDirect
Hi,
I've got a problem with RODBC and saving (sqlSave) of a dataframe in Access.
R 2.0.1 is running on windows XP.
When executing the examples in R help for the "USArrests" data set "sqlSAve" works fine, but running sqlSave() for a dataframe "Adat" 
> str(Adat)
`data.frame':   1202 obs. of  18 variables: 
containing 18 columns and ca. 1200 rows fails.
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
2007 Feb 20
2
RODBC problems with unixodbc
Hi,
I noticed that if a column is named "end" in a data frame (table.df
below), it leads to errors when trying to sqlSave()'it to a postgresql
connection:
---<---------------cut here---------------start-------------->---
con <- odbcConnect("PostgreSQL-DB", uid="user", pwd="password",
                   case="postgresql")
R>
2011 Nov 10
1
Help: sqlSave Error
I am using sqlSave to save my data into an existing table at MS SQL Server
database. Previously my code ran smoothly but all of a sudden it stopped
working. Here is my code:
sqlSave(con, highVol, "dbo.futuresHighVol", append=TRUE, rownames=FALSE)
Error: sqlSave(con, highVol, "jrgchis.dbo.futuresHighVol", append = TRUE,  : 
  42S01 2714 [Microsoft][ODBC SQL Server Driver][SQL
2006 Feb 20
1
sqlSave
Hi, 
I am having trouble to write/create a table, which has
a date field. I want to create a stock price table,
which has fields of ticker, date, price. First, I
created such a table in Microsoft Access with a few
rows inputs. Using sqlQuery, I found that the date
field was retrieved as POSIXct value. Then I made a
data.frame with POSIXct as the data type for dates.
However, I received the
2007 Mar 23
6
Updating a worksheet in Excel file using RODBC
Hello!
 
I have no problem reading Excel files (each worksheet in the file is a "table" which can be read - at least in my case).
 
What I would like to do is to read such a table, change it (just the contents, not the format) and write it back, and this I can not do.  I am getting the following error messages (3 slightly different attempts):
 
> sqlSave(con, x, tablename =
2007 Mar 07
0
sqlSave help!
Hi Everyone,
I'm so confused.  I've been trying to save data to a table but I keep
getting an error that says the table
does not exist and at other times saying that it does. So here are some
statements:
> sqlQuery(channel, "select top 1 * from
> TestDB.[SILICON\\holouis1].clep_tier_shift")
  State         NB Change_Number
1    IL 2005-02-08             7
It exists and I
2004 Nov 25
0
Problem with ODBC access to SQL database
I have the following problem in getting the "sqlSave" function from the
example code in the R package RODBC to work with MySQL as ODBC server:
 - a new database is created, but no data is written to it
 - the example code works just fine when I use MS Access as ODBC server.
 
----------- offending code and output -------------------
> library(RODBC);
> channel <-
2010 Feb 24
1
problem with sqlSave()
Dear R users,
I've already asked this question yesterday, but, though I had answer for 
the other ones (and they helped a lot, thanks), for some reason didn't 
get an answer for this one (I would also appreciate to know why, so that 
I can improve the quality and clarity of my future questions).
Here it is again:
I'm trying to use RODBC to export dataframes to xls files.
When I run
2012 May 29
1
RODBC, Excel, and data truncation when writing
Hi,
I am hoping to use the RODBC package to write a dataframe to an Excel .xlsx
file. The dataframe contains at least one field with character elements
that exceed 255 bytes, which appears to be the cell width limit in Excel.
Below is example code and the warning message received:
library(RODBC)
d <-
2011 Feb 26
0
Problem with RODBC sqlSave
Hi,
I'm able to establish a successful odbc connection using RODBC 1.3-2 on Win
7 and R 2.12.0. But I'm getting the following error message when I try to
save a data frame into the debase as shown below.
library(RODBC)
bbdb <- odbcConnect("bbdb")
odbcGetInfo(bbdb) # returns ok
sqlSave(bbdb, USArrests, rownames = "state", addPK=TRUE) #  example from the
RODBC manual
2010 Feb 11
2
SAS and RODBC
I am using R-2.10.1 binary from CRAN on a WinXP Pro system.  I also use SAS v9.2 on the same box.  I just started using the SAS ODBC driver that comes with version 9 of SAS.  I have been able to set up an ODBC source for SAS datasets using the driver, and then with RODBC I am able to read a sample SAS dataset.
> library(RODBC)
> ch <- odbcConnect('sasodbc', believeNRows=FALSE)
2011 Aug 08
2
RODBC: sqlUpdate doesn't handle properly POSIXct field?
Hello all!
 
Can someone confirm whether there is a bug or not?
 
I was trying to use sqlUpdate in place of sqlSave as data set I import has duplications. However I get errors while using fast=FALSE argument to safely update/ignore duplicates:
 
Error while executing the query[RODBC] ERROR: Could not SQLExecDirect 'UPDATE "data" SET "logger"=1,
2010 Feb 23
1
RODBC to import/export xls files
Dear R users,
I've learned today about RODBC package in order to import xls file to 
dataframes and export the dataframes to xls files.
However I have some problems. Please excuse me if these are basic but as 
I said, I've just begun with this package.
Also this email is quite long, but everything is related, so I don't 
think it would be better to split it. Moreover, there's a
2007 Oct 22
0
RODBC problem: sqlSave not working after an update
Good day, all.
I just upgraded to R 2.6.0. I re-installed my most-used packages including RODBC to be sure I'm up-to-date. I have been working with a large insurance claims dataset stored in a MS-Access database on a Windows machine. I have been regularly exporting tables from R into it using sqlSave. It's worked like a charm until today, when this happened:
>
2018 Jan 24
1
Help with SQLsave
Hi all,
I'm using RODBC library to connect to a database.
I'm trying to read a table from a database and after manipulating it would like to write to the same database but with a different table
P<-data.frame(sqlQuery(myconn,'select? *? from Demographics'))
sqlSave(myconn,p,tablename="trial",rownames=FALSE)
I'm gettng this error
Version:1.0
2012 Sep 19
0
export date field using sqlSave
Hello-
I'm receiving an error when I try to export a dataframe into Access
2010 containing a date field using sqlSave. The error I'm receiving
is:
[RODBC] Failed exec in Update
22018 39 [Microsoft][ODBC Microsoft Access Driver]Invalid character
value for cast specification
I can export all other columns, except the date column. If I convert
the date column to julian (numeric) it works
2011 May 10
0
Series temporales
Hola Jorge:
Disculpa la tardanza pero me han tenido liado en otros menesteres. Yo no 
soy ni muchísimo menos un experto ni en series temporales ni en R de hecho 
retomo el tema después de muchos (demasiados) años aparcado y dedicándome 
a labores de programación pura y dura.
Respecto a la diferencia de resultados con R y Statgraphics, no conozco el 
proceso de selección del modelo ARIMA que hace
2012 Nov 11
0
Problem to fetch data from access using odbc connection
Hi all, apologies that I could not give any reproducible example, 
however I think that following should be okay to explain my problem.
Basically I have an Access database (for time series data) I want to use 
to R to analysis the data. Following is my code:
 > library(RODBC)
 > connect <- odbcConnectAccess("f:/DB/DB.mdb")
 > Dat1 <- sqlQuery(connect, paste("select