odbc

Reading Visual Foxpro Data From Java using ODBC

给你一囗甜甜゛ 提交于 2019-12-06 11:29:42
问题 I am trying to query a dbf table from my Java application. I put in reference this thread I created a system data source using the ODBC Data Source Administrator, I set the data source name to be VFPDS and set the database type to .DBC finaly i set the path to the .dbc file. the following is my java code: import javax.swing.* ; import java.awt.* ; import java.awt.event.* ; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; import

Is this a Microsoft or an Oracle Problem?

一个人想着一个人 提交于 2019-12-06 09:58:59
In my original thread here: How can I fix ORA: 01013 (user requested cancel...) when trying to link Oracle tables in MS Access? I describe an issue attempting to link Oracle tables into a Microsoft Access (office 365) database. The process timed out after entry of a UID and password. As I researched the problem, I was able to determine that the ODBC drivers and DSN work for ADO, Toad, and Microsoft Power BI (when using a specific query against an Oracle table). I was never able to log entries in the Oracle V$SQL table from either Access or Excel to further troubleshoot the problem. However,

How to explain why ODBC requires a database driver

北战南征 提交于 2019-12-06 08:59:35
A month ago, I was showing a buddy how use .NET to query MySQL. It worked just fine, but he didn't understand why we needed a "driver" for MySQL in conjunction with ODBC. He though ODBC would be enough. When he asked me why, I did my best, but my answer came up short. What is the correct explanation for this question? The reason you need a driver is that ODBC is not in itself a driver for talking to databases: it's an abstraction and an API. Essentially it is an adaptor layer designed to make all databases appear the same to the client application: you talk to the ODBC library, and it asks the

What does forName() method in the Class class do, when loading jdbc:odbc driver?

走远了吗. 提交于 2019-12-06 07:56:48
I am learning to enable my Java application to communicate with a MS Access database. I am unsure of one method, the Class.forName() method. The parameter I pass is "sun.jdbc.odbc.JdbcOdbcDriver", which loads the jdbc:odbc bridge for accessing a database. What does the Class.forName() do exactly and why is it needed? Thank you very much. Class.forName() causes ClassLoader to load the class into memory. JDBC driver classes have static initializers that register them with DriverManager for further use. After you use Class.forName() , and use DriverManager.getConnection("jdbc:*", database,

MySQL ODBC 3.51 - How to disable connection pooling from the ODBC GUI?

自作多情 提交于 2019-12-06 07:31:13
How do I disable connection pooling for MySQl ODBC Driver 3.51 on Windows7/Server2008 via the ODBC GUI? I do my own connection pooling at the app level, making connections as and when needed, and storing them for a fixed period until terminating them if not used. I use the ODBC's DSN string, so I need to be able to set the "Pooling=False" option from the ODBC configuration screen. Found it... The 32Bit ODBC GUI is started from C:\Windows\SysWow64\odbcad32.exe. In this GUI, there is a tab on the first screen called "Connection Pooling". Click on this, you get a list of drivers. There is a

Connect to a local database from phpmyadmin with R

本秂侑毒 提交于 2019-12-06 07:21:50
I have searched for a lot of threads explaining the connexion with a database with R but I still can't make it work. At the moment, I know that I have to install the package 'ROBDC' and use either odbcConnect() or odbcDriverConnect() . But the first one seems harder since I have to set an OBDC connection (tried some things but didn't work too t.t). My final goal is to extract some data in a database located in a web server but, first, I wanted to see how the functions work for a local database created with Wamp Server. I'm currently working on Windows 7. My database's name is 'extraction' and

Oracle ODBC: Why are national characters changed to Latin equivalent in SELECT result

ぃ、小莉子 提交于 2019-12-06 07:19:30
问题 I have Oracle 11 database to which I connect using both JDBC and ODBC. JDBC works well, but in ODBC all Polish letters in SELECT result are changed to Latin equivalent, for example ą -> a , Ó -> O etc. I tested it with my application and simple Python program that uses odbc module. The same value from database is returned as: ZAMOŚĆ - by JDBC ZAMOSC - by ODBC My environment: DB server: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production Client machine: Windows Server 2008 R2 64 bit

How to export MS Access table into a csv file in Python using e.g. pypyodbc

三世轮回 提交于 2019-12-06 06:09:36
I have been trying to export a table from MS Access database into a csv file using pypydobc - using fetchone function is taking forever e.g. 200,000 rows are taking about 5 minutes to print. If fetchone was quicker I could have just printed the results into a csv file but it's taking too long. This is what I tried so far: import pypyodbc pypyodbc.lowercase = False conn = pypyodbc.connect( r"Driver={Microsoft Access Driver (*.mdb, *.accdb)};" + r"Dbq=C:\temp\Temp_DB.accdb;") cur = conn.cursor() cur.execute("SELECT Column1, Column2, FROM Table1"); Col1 = [] Col2 = [] row = cur.fetchone() while

iODBC does not work under Mac OSX 10.6.4

▼魔方 西西 提交于 2019-12-06 05:41:26
I've installed iODBC over the package (http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/) and set up all config files as described here: http://blog.opensteam.net/past/2009/1/28/rails_ms_sql_on_mac/ I set up the same thing on a Linux machine and it worked fine. On my Mac OSX 10.6.4, I get this error if i test the connection: xxx@xxx:/opt/local/include$ iodbctest "dsn=res;uid=user;pwd=pass" iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0709.0909 1: SQLDriverConnect = [iODBC][Driver Manager]dlopen(/opt/local/lib/libtdsodbc.so, 6): Symbol not

SSIS: version of ODBC source is not compatible with this version of the dataflow

北城余情 提交于 2019-12-06 05:03:28
I'm using Visual Studio 2015 to create a simple SSIS package. The data source is a DB2 database, and I'm using an ODBC driver on my workstation to connect to DB2. The target is SQL Server 2014. The package runs fine locally, but whenever I run it on the server, I'm having trouble with the ODBC data source. The driver on the server is the exact same one with the exact same name as the one on my workstation. To get the package into the server, I've imported the dtsx file into SSIS in Stored Packages. I've also tried to deploy the project to the Integration Service Catalog, but I get one of these