odbc

Save or Read data from SQL Server in to R using ODBC package

末鹿安然 提交于 2021-01-29 08:24:43
问题 If I want to connect R to a database, do I still need to install driver for R user? I had done successful connection with server but unable to read/write/fetch the tables. library(odbc) con <- dbConnect(odbc::odbc(), .connection_string = 'driver={SQL Server};server=DW01;database=AF_DW;trusted_connection=true') Now I can see AF_DW in RStudio connections. dbListFields(con, "Visits") I can see all the variables in the table "Visits" data <- dbReadTable(con, "Visits") Got an Error: nanodbc

(Maybe) Illegal character in ODBC SQL Server Connection String PWD=

痞子三分冷 提交于 2021-01-28 08:58:15
问题 According to what I have researched there are no illegal characters in the PWD= field of a SQL Server Connection String. However, using SQL Server Express 2008 I changed the SA password to a GUID, specifically: {85C86BD7-B15F-4C51-ADDA-3B6A50D89386} So when connecting via ODBC I use this connection string: "Driver={SQL Server};Server=.\\MyInstance;Database=Master;UID=SA;PWD={85C86BD7-B15F-4C51-ADDA-3B6A50D89386};" But it comes back as Login failed for SA. However, if I change the SA password

(Maybe) Illegal character in ODBC SQL Server Connection String PWD=

僤鯓⒐⒋嵵緔 提交于 2021-01-28 08:49:04
问题 According to what I have researched there are no illegal characters in the PWD= field of a SQL Server Connection String. However, using SQL Server Express 2008 I changed the SA password to a GUID, specifically: {85C86BD7-B15F-4C51-ADDA-3B6A50D89386} So when connecting via ODBC I use this connection string: "Driver={SQL Server};Server=.\\MyInstance;Database=Master;UID=SA;PWD={85C86BD7-B15F-4C51-ADDA-3B6A50D89386};" But it comes back as Login failed for SA. However, if I change the SA password

MySQL ODBC configuration

删除回忆录丶 提交于 2021-01-28 08:05:03
问题 I have managed to make my Access work as a frontend for MySQL. I have managed to make it work through connection string but because some specifics in code i would like to save DSN configuration as user DSN. I have ran into one specific problem. I need to use option=3 inside my connection string because without option=3 i get error: The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time. If i include option=3

In R connected to a database through ODBC, how do I disconnect after running one query to send another query without cancelling the previous?

若如初见. 提交于 2021-01-28 07:11:22
问题 I am new to R and new to Stack Overflow, so apologies if I don't post this correctly! I have R linked to an Access database using the ODBC and DBI packages. I scoured the internet and couldn't find a way to write an update query, so I've created a loop that manually pretty much does the same thing. The problem is that to do this, I am using the dbSendStatement function. It seems that when you use that function you need a way to then end it before moving onto another query, or else you get

Query parameters with Impala ODBC driver

…衆ロ難τιáo~ 提交于 2021-01-28 03:37:26
问题 I'm using the Impala ODBC driver provided by Cloudera. I can't seem to use query parameters correctly. For instance: OdbcCommand command = DbConnection.CreateCommand(); command.CommandText = "INSERT INTO TABLE test VALUES(?, ?)"; command.Parameters.Add("key", OdbcType.VarChar).Value = "csharp"; command.Parameters.Add("val", OdbcType.VarChar).Value = "test"; command.ExecuteNonQuery(); throws the following exception. {"ERROR [HY000] [Cloudera][ImpalaODBC] (110) Error while executing a query in

creating a custom odbc driver for application

China☆狼群 提交于 2021-01-27 21:20:22
问题 Ok, i have a simple database engine (its a proprietary product written in vb6) for one of my applications... i'd like to create an ODBC driver for it so i can use some of my other applications (which require a database) with my database engine rather than microsoft sql (which they are currently using).... Does anyone have any heads up on how to develop an ODBC driver (preferably in vb6) ... i'v spent the last few hours googling it and havnt had much luck... about the best thing i have found

Escape an access table name containing a question mark with ODBC

淺唱寂寞╮ 提交于 2021-01-27 17:33:50
问题 I have an Access database to query as follows: id - name - Print? 1 - one - Yes 2 - two - No Now my query in java, using the PreparedStatement with an ODBC connector goes something like this: select * from table where [Print?] = Yes I can't find a way around this to escape the question mark. I know it's an awful design choice by whoever made the database, but it's so tied in applications already changing it is not an option. PS. I've read How to query for a MS Access column whose name has a

Can't open lib '/opt/netsuite/odbcclient/lib64/ivoa27.so Unable to find odbc driver (Netsuite)

蓝咒 提交于 2021-01-05 07:55:05
问题 I have deployed the django project on ubuntu 20.04, nginx , gunicron. A part of the code is not able to run on the server it gives error ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/opt/netsuite/odbcclient/lib64/ivoa27.so' : file not found (0) (SQLDriverConnect)") While the file is available :- xxxx@XXXXXX:/opt/netsuite/odbcclient/lib64$ ls ddtrc27.so ivmgan27.so ivmghu27.so ivoa27.so libicudata.so.42 libivoa27m.so libodbc.so openssl810.so ivldap27.so ivmgapi27.so ivoa27.ini

In R connected to an Access Database through ODBC, how can I update a text field?

左心房为你撑大大i 提交于 2021-01-05 07:22:05
问题 I have R linked to an Access database using the ODBC and DBI packages. I scoured the internet and couldn't find a way to write an update query, so I'm using the dbSendStatement function to update entries individually. Combined with a for loop, this effectively works like an update query with one snag - when I try to update any field in the database that is text I get an error that says "[Microsoft][ODBC Microsoft Access Driver] One of your parameters is invalid." DBI::dbSendStatement(conn =