odbc

Updating Oracle Table from Excel VBA Macro using ODBC connection

爷,独闯天下 提交于 2020-01-10 05:38:05
问题 I have a sheet in Excel 2010 which pulls data in QueryTables from an Oracle database, connected via an ODBC DSN. I need to take data from the spreadsheet and use it to update a table in the same Oracle database. I cannot do an update from a QueryTable, but that is the only connection method I have been able to get to work with the ODBC. I have tried setting up a ADODB connection, but I am getting a 'Run-time error '-2147467259 (80004005'): Automation error Unspecified error Here is the code I

“Data source name not found and no default driver specified” with Access ODBC

倖福魔咒の 提交于 2020-01-09 02:29:16
问题 My Softwares: Python 3.4 -64 bit PyODBC 64 bit MS office package Installed (32 bit) Problem: Now, I try to access MS Access 2010 installed in my computer using PYODBC. It does not work regardless of what I try. My error is always this: pyodbc.Error: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') I already looked at: pyodbc and ms access 2010 connection error Cannot connect to Access DB using pyodbc It is

dBASE ODBC drivers on Windows Server 2008

血红的双手。 提交于 2020-01-07 06:47:39
问题 I have an C# winforms app that works fine on all our XP machines. We want to put it on a new Win 2008 64 bit server and it breaks on the following code: using (OdbcConnection oConn = new OdbcConnection()) { oConn.ConnectionString = @"Driver={Microsoft dBase Driver (*.dbf)};SourceType=DBF;SourceDB=" + filePath + ";Exclusive=No; Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;"; oConn.Open(); OdbcCommand oCmd = oConn.CreateCommand(); oCmd.CommandText = "SELECT DISTINCT Mid(POSTCODE,1,Len

Progress OpenEdge to PostgreSQL database

╄→гoц情女王★ 提交于 2020-01-07 05:11:35
问题 I have problem with converting Progress OpenEdge database to PostgreSQL. I have downloaded ODBC from here and when i make ODBC connection (32 bit) in my computer, the connection is established. Next, I downloaded Ispirer SQLWays Wizard 2015 from here (with some limitations, 100 tables max, 2gb od data etc), and tried to make conversion. All seem fine, source and destination databases are connected, I select only 1 table (just for test), but when I start conversion i get some weird error:

Is it possible to use pyodbc to read Paradox tables that are open in the Paradox gui?

六眼飞鱼酱① 提交于 2020-01-07 04:25:06
问题 I'm working in a environment with a very poorly managed legacy Paradox database system. (I'm not the administrator.) I've been messing around with using pyodbc to interact with our tables, and the basic functionality seems to work. Here's some (working) test code: import pyodbc LOCATION = "C:\test" cnxn = pyodbc.connect(r"Driver={{Microsoft Paradox Driver (*.db )\}};DriverID=538;Fil=Paradox 5.X;DefaultDir={0};Dbq={0};CollatingSequence=ASCII;".format(LOCATION), autocommit=True, readonly=True)

SSRS Issues with 32bit and 64bit ODBC drivers

痞子三分冷 提交于 2020-01-06 21:04:44
问题 The ultimate goal is for users to be able to run a report that looks pretty and grabs current information from our database. We'd like to use SQL Report Builder since we're already using it for other reports. The database is Cisco UCCX and we're accessing it with an ODBC connection from our reporting services SQL Server 2008 R2. We've successfully setup System ODBC connections with both 64bit and 32bit drivers. When trying to access the connections though, we're receiving errors. Using the

mssql and left join duplicate records

你离开我真会死。 提交于 2020-01-06 07:58:22
问题 Original Query SELECT DISTINCT IP.op_code as ip_op_code, IPH.op_code as iph_op_code, debt_trans.tx_amount as cash, DT.tx_amount as revenue FROM debt_trans LEFT JOIN debt_trans DT ON DT.debt_code=debt_trans.debt_code LEFT JOIN instplan IP ON IP.debt_code=debt_trans.debt_code LEFT JOIN instplanheader IPH ON IPH.debt_code=debt_trans.debt_code AND debt_trans.tran_code NOT IN ('DR3001','DR3002','DR3003','DR3004','RP1800','CC5000') AND debt_trans.tx_amount > 0 AND debt_trans.tx_date >= '2019-02-04'

Qt's odbc driver does not support LastInsertId with mysql, whats the workaround?

守給你的承諾、 提交于 2020-01-06 07:58:10
问题 Im using Qt 4.8.3 and the MySQL ODBC 3.51 Driver. The driver does not seem to support LastInsertId which I test like this: db.driver()->hasFeature(QSqlDriver::LastInsertId) I need it to find the auto increment id I just inserted query.exec("INSERT INTO myTable (MyVal, Created) VALUES ('1', NOW())"); auto insertId = query.lastInsertId().toString(); What is the best workaround? EDIT: there will be concurrent access to this table from multiple clients. 回答1: According to MySQL documentation, you

ValueError: character U+590048 is not in range [U+0000; U+10ffff] - MAC OS

大兔子大兔子 提交于 2020-01-06 06:31:21
问题 Could someone help me with the below error while connecting to Teradata from my Python environment. I'm using ODBC driver method and I've tried all the below existing methods to connect but no luck. Note: if you are using windows, you can directly use these methods, however the problem comes when you are on MAC OS (not for all though) USING TERADATA Module and SQL Alchemy. import teradata import pyodbc server='111.00.00.00' username = 'user' password = 'pwd' udaExec = teradata.UdaExec(appName

Truncation of database name and columns while connecting to SQL database from R

一世执手 提交于 2020-01-06 05:57:09
问题 I am on macOS Catalina (Version 10.15.1), running R 3.5.0. I am running SQL server on Docker locally. For connecting to the server, I am using odbc : con <- dbConnect(odbc(), Driver = "Simba SQL Server ODBC Driver", Server = "localhost", UID = 'SA', PWD = 'XXXXXXXX', database = dbname) I am able to connect to the server, however the names of all the databases therein are getting truncated to just the first letter as shown here: Subsequently all the character columns are also showing only the