odbc

32 bit pyodbc reading 64 bit access (accdb)

强颜欢笑 提交于 2019-11-30 18:26:52
问题 I have python 2.7 32 bit running on a Windows 8.1 64 bit machine. I have Access 2013 and a .accdb file that I'm trying to access from python and pyodbc. I can create a 64 bit DSN in the 64 bit ODBC manager. However, when I try to connect to it from python, I get the error: Error: (u'IM002', u'[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified') Presumably, python is only looking for 32-bit DSNs and doesn't find the 64-bit one that I've created.

What is the simplest, most maintainable way to create a SQL Server ODBC Data Source?

邮差的信 提交于 2019-11-30 18:18:31
问题 I need a programmatic way of creating a SQL Server ODBC Data Source. I can do this by directly accessing the Registry. It would be better if this could be done via an available (SQL Server/Windows) API to protect against changes in the registry keys or values with updated SQL Server drivers. Accepted Answer Note: Using SQLConfigDataSource abstracts the code from the details of Registry keys etc. so this is more robust. I was hoping, however, that SQL Server would have wrapped this with a

How do I get ms-access to connect to ms-sql as a different user?

邮差的信 提交于 2019-11-30 18:15:57
问题 How do I get ms-access to connect (through ODBC) to an ms-sql database as a different user than their Active Directory ID? I don't want to specify an account in the ODBC connection, I want to do it on the ms-access side to hide it from my users. Doing it in the ODBC connection would put me right back in to the original situation I'm trying to avoid. Yes, this relates to a previous question: http://www.stackoverflow.com/questions/50164/ 回答1: I think you can get this to work the way you want it

ASP, MySQL and UTF-8

独自空忆成欢 提交于 2019-11-30 17:57:38
问题 First of all, I've read almost all topics about this. I've tried all advices but I couldn't solve this problem. Here is the thing. I use Classic ASP and MySQL for a project. Everything just fine. If I write (an example) Response.Write("ĞŞÜÇÖİ") it works like a charm. But if that string comes from database, I see "ÄÅÜÇÖİ" instead of "ĞŞÜÇÖİ". When I look this with phpMyAdmin it's ok. I use Dreamweaver CS6. I save all pages Unicode (UTF-8). I've written Session.CodePage = 65001, Response

Crystal Reports Changing the Data Source

自古美人都是妖i 提交于 2019-11-30 17:33:54
I have a Crystal report where the data source has originally been set to use ODBC connections. Now I want to modify the data source to instead use OLE DB instead of using ODBC. How do I replace the data source connection without breaking the database fields which I have originally set up for my report? If I try to delete the original data source, the fields which I have already set up are also deleted. Is there a way to map the report to use OLE DB instead of the ODBC connection? Thanks. Its easy. Right click on the database fields in your field explorer. Click on 'Set datasource location' And

How to specify null value in MS Access through the JDBC-ODBC bridge?

别说谁变了你拦得住时间么 提交于 2019-11-30 17:27:52
问题 I am not able to call setNull on PreparedStatement using MS Access (sun.jdbc.odbc.JdbcOdbcDriver) preparedStatement.setNull(index, sqltype). Is there a workaround for this? For LONGBINARY data type, I tried the following calls, neither worked. setNull(index, java.sql.Types.VARBINARY) setNull(index, java.sql.Types.BINARY) java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid SQL data type at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957) at sun.jdbc.odbc

PDO: How to access Microsoft Access file on Linux?

[亡魂溺海] 提交于 2019-11-30 17:00:21
问题 I have managed to read data of Microsoft Access file (.accdb) on Windows using PDO but I'm having problem getting to work on Linux (CentOS). I can see modules is installed: [root@rapid host]# php -m | grep PDO PDO PDO_ODBC [root@rapid host]# php -m | grep odbc odbc code: <?php try{ $dbhAccess = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=/root/access/data.accdb;Uid=Admin"); } catch(PDOException $e){ echo $e->getMessage(); exit(); } I get an erro when I execute (CLI)

R DBI ODBC error: nanodbc/nanodbc.cpp:3110: 07009: [Microsoft][ODBC Driver 13 for SQL Server]Invalid Descriptor Index

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 15:37:07
问题 I continue to read the DBI/ODBC is faster than RODBC , so I tried as follows: require(DBI);require(odbc) con <- DBI::dbConnect(odbc::odbc(), dsn = 'SQLSERVER1', database = 'AcumaticaDB') I can make a successful connection to the DSN, but the following query: rs <- dbGetQuery(con, "SELECT * FROM inventoryitem") dbFetch(rs) gives me the following error: Error in result_fetch(res@ptr, n, ...) : nanodbc/nanodbc.cpp:3110: 07009: [Microsoft][ODBC Driver 13 for SQL Server]Invalid Descriptor Index

Reading Netezza database table from C# via ODBC not working in Windows 7

空扰寡人 提交于 2019-11-30 14:25:15
问题 Why can't .NET connect to my Netezza box via the installed {NetezzaSQL} driver? 64bit applications also cannot connect via this ODBC connection. Why would that be? I've built both user and system Netezza ODBC connections in Control Panel, and both work fine when I click "Test Connection"? I see the value in the registry, but when I traverse the registry drivers, .NET does not see "NetezzaSQL". According to Netezza, they don't have a 64 bit ODBC driver. The driver they provide should work for

64 bit ODBC Exception

别来无恙 提交于 2019-11-30 13:46:56
问题 I am getting the following ODBC exception when I moved my development platform from Windows XP X86 to Windows 7 X64: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application What I'm sure it means is that the server it is connecting to is 32 bit, and the computer I'm running on is 64 bit and the ODBC driver in use is 64 bit. The application I am writing is set to run in 32 bit mode because some of the third-party