Displaying 20 results from an estimated 8000 matches similar to: "Read in data from Microsoft SQL"
2009 May 18
1
Connection to Microsoft SQL Server
Dear Users
I am new to R. I'm trying to make a connection to Microsoft SQL Server via
R.
How can I find the correct syntax to make the connection? The Help pdf file
has an example for mySql but there's isnt much on SQL Server.
Please help.
I am trying the following code
library(RODBC)
con<-odbcConnect(dbname,hostname)
How do I specify the driver,userid,password etc?
Many thanks for
2009 Jul 15
1
Help with RODBC connection to multiple MS SQL Sever databases
I'm trying to pull data from multiple MS SQL Sever databse in R. I can access the databases one at a time, but the tables are to large to pull the entire tables then join then in R. So I need to do a SQL join that will join the tables from the each of the databases. How do I combine the connection so that I can implement it in my sql query below. I'm currently getting the following error:
2009 May 13
3
SQL Queries from Multiple Servers
I use RODBC as my conduit from R to SQL. It works well when the tables are
stored on one channel, e.g.,
channel <- odbcConnect("data_base_01", uid="....", dsn="....")
However, I often need to match tables across multiple databases, e.g.,
"data_base_01" and "data_base_02". However, odbcConnect() appears limited
insofar as you may only query
2004 Mar 08
3
dsn
Hi,
I have a data base in oracle and need to link R using ODBC.
When i use the command odbcConnect a dsn is needed.
I would like to create a dsn.Do you know how can i do it?
Thank you.
Margarida,Portugal
2006 Sep 19
1
RODBC Connections closed automatically in background
I am having a problem with RODBC's connections. It appears that
my connection to the database is closed by R automatically before
I am done with it.
Here is my code:
foo <- function(dsn) {
db <- odbcConnect(dsn)
odbcSetAutoCommit(db, FALSE)
data <- someDatabaseOperation(db)
data2 <- someLongCalculation(data)
anotherDatabaseOperation(db, data2) # This often fails b/c the
2010 Dec 17
2
RODBC for 64-bit R with 32-bit Access
Hello Folks,
I do hope this is the correct place to post (and not in R-SIG-DB). I have
spent the better part of a day searching for an answer to this question, and
have yet to resolve it.
I am trying to query an .accdb Access database (with 32-bit Office 2007
currently residing on the machine) with 64-bit R via RODBC. There seem to
be some conflicting accounts as to whether or not this is
2004 Sep 04
1
rodbc windows doesn't find dsn
Under WinXP, I have a system DSN called foo. It has stored
username/password information. (I can click Configure in ODBC
Administrator and then Test Data Source connects to MySQL without me
re-entering data.)
Using RODBC, I can connect to the same database. But when I do
odbcConnect("foo"), I get a window that requires me to re-enter
username/password information. It seems like
2012 Aug 24
1
2 (related) problems with RODBC in 64 bit Windows
Hi all,
I am encountering an RODBC problem in R 2.15.1 in windows 64 bit which I do not encountered in the same set up in windows 32 bit (the latest binary version of RODBC in both cases from the same depository gotten by install.packages(‘RODBC’), Oracle ODBC client software installed in 64 and 32 bit respectively)
1. The code looks like
library(RODBC)
credentials <-
2013 Apr 22
2
RODBC --How do you set up the connection so pwd is blank but driver-specific data source dialog box pops up after
Hello,
I want to leave pwd blank (to comply w/ company security protocol) and just be prompted by the driver-specific data source dialog box to enter the password after. But for some reason it is not working.
R Version: "R version 2.15.1 (2012-06-22)"
R Studio Version: 0.97.312
OS: Windows 7
library(RODBC)
##HERE IS THE CODE THAT DOES WORK
##my DSN, UID, PWD is entered something like
2010 Mar 25
3
Reading SQL Server Tables using RODBC
Hello Everyone,
I'm still quite new to R and am having trouble reading SQL Server Tables using RODBC. I've looked though the RODBC documentation as well as material I found online and in the book "Data Manipulation with R," but I just can't quite seem to get things to work.
Right now, I have code that looks something like:
channel <- odbcDriverConnect
2007 May 02
1
Query about RODBC to access MySQL from Windows
Hi
I am trying to use RODBC in R installed on Windows to
access MySQL database (on a linux box).
I set up a DSN and specified this DSN in R as follows
library(RODBC);
channel <- odbcConnect("mysqldsn");
RODB Connection 5
Details:
case=nochange
PORT=3306
........
Although this seems to connect properly, running any
command yields NO results.
i.e. sqlQuery(channel, "show
2003 Aug 25
1
ODBC Oracle access
Hi all,
I'm having trouble connecting to an oracle database using RODBC under
winXP. Unfortunately I can't really send a reproducable error as the
initial call to odbcConnect seems to hangs R and I have to kill the
session.
I have been using RODBC to sucessfully connect to an MS Access DB that
has tables linked through to the oracle database in question and that
seems to work OK but it
2002 Jan 02
1
RODBC - dsn specification
Happy New Year to all in the list!
I am trying to issue an SQL query to a database from R using
RODBC (on Windows). The data source file is on my PC hard
disk : C:\Program Files\ODBC\sql.dsn
The "\" character does not get interpreted properly in R - it
is removed from the file-spec string or if I specify "\\" it
appears as such with a syntax error in
odbcConnect(dsn,
2004 Jun 15
2
S/R/RWeb/ODBC
I'm looking for an optimal approach to access Oracle databases via RWeb
applications. I'm new to R but familiar with programming functions and web
pages for the S+ Statserver. I'm now going through the motions of migrating
S+/Statserver applications to R/RWeb as a feasability exercise. I can access
databases using ODBC directly in R or S, and using Statserver, but I have
not succeeded
2002 May 10
2
RODBC for importing dbf
Hi
I know that it is very easy to import data from a dbf file to R, by
saving the data as csv, for instance.
However, I have several hundreds of files to do that. So, I thought of
using RODBC to read the dbf files and save it as data.frame. However, I
cannot even start (this is my first time using such package):
> library(RODBC)
> bdades <- odbcConnect("prova.DBF")
Warning
2009 Oct 23
2
connecting to Oracle
Hi, useR-
I am connecting to Oracle database using RODBC, but keep getting this error
message:
> library(RODBC)
> channel <- odbcConnect(dsn="abc", uid="abc", pwd="abc", case='oracle')
Warning in odbcDriverConnect(st, ...) :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name not found and no default
2007 Jul 26
1
SQL server service pack 2 prob? (PR#9810)
Full_Name: Jeff Lindon
Version: 2.5.0
OS: mingw32
Submission from: (NULL) (63.147.8.67)
R 2.5.0 seems to be unable to read valid tables from SQL Server 2005 with
Service Pack 2 installed:
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386,
2004 May 12
1
Formula of power.t.test
Dear Sir or Madam,
What is the formula for power.t.test(delta=delta, sd=segma, sig.level=0.05,
power=0.8, type="one.sample", alternative="one.sided")$n?
Thank you very much for the help!
Best,
Xiaorong
2005 Oct 29
2
RODBC Error
Hello,
I'm using R 2.2.0 on a Mac and attempting to use the RODBC package to
connect to a PostgreSQL server on the local network. I can't tell
whether my problem is in R, or in ODBC setup.
I got drivers from OpenLink, created a dsn and tested it using the
iODBC application. then I load the RODBC package, use this code and
get the following error. I tried with both the
2014 Apr 01
3
problema con RStudio
Hola a todos,
Tengo un problema con RStudio y la conexión a una base de datos.
Desde la terminal no tengo problemas para ejecutar, por ejemplo:
library(RODBC)
channel <- odbcConnect("MiBaseDatos", uid = "MiUsuario", pwd =
"MiContrasena")
datos <- sqlQuery(channel,"SELECT TO_CHAR(S.B_STOD_DATO,'YYYY') \
, M.STODNR \
...
...
...")
pero desde