Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205491

Trouble Connecting to DB2 Database with R error 1114

$
0
0

I've been trying to connect RStudio to a DB2 database and have been receiving the following error

rror: nanodbc/nanodbc.cpp:950: IM003: Specified driver could not be loaded due to system error  1114: 
A dynamic link library (DLL) initialization routine failed. 
(IBM DB2 ODBC DRIVER - DB2COPY1, C:\PROGRA~1\IBM\SQLLIB\BIN\DB2CLIO.DLL). 

I've been using this code

connection<-DBI::dbConnect(odbc::odbc(),Driver="IBM DB2 ODBC DRIVER - DB2COPY1", 
Server = "NRDCWIP6",uid="nxxx",pwd="Wxxx")

which has been working well for a different database (SQL server). I'm working in Windows 10 and don't have a lot of information about the database itself since it's managed by an IT group that's quite busy. I'm still quite new to connecting R to databases as well. I do know that the platform for the DSN is 32-bit, but when I look under the User DSN tab, it is listed as 32/64 bit.

enter image description here

enter image description here

I know 1114 is a rather well known error, but I'm not sure where the problem is and I've tried numerous variations of this code. Anything will help!


Viewing all articles
Browse latest Browse all 205491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>