473,606 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems connecting to ODBC

I have transferred the data from Access to MySQL using
MySQL's tool. The transfer worked great and saved me a
lot of time (thanks MySQL). Now I'm trying to get the
Access database, or a new access database, to talk across
ODBC and see the data.

I created the DSN through the control panel and it works
without error.

How do I setup Access so it can see the data. The data
was on windows (M$ Access) and is now on linux (Fedora
Core 5).

Followup: Seems like it connects, the 'Test' in the DSN
definition returns data. I turned on logging through
the DSN dialog and I see traffic between the DSN/application
(MS Access) and the MySQL server. Still, I do not see
anything usable returned from the MySQL server to Access.

Mike
Jul 25 '06 #1
3 4351
"Mike" <mi***@mikee.at h.cxwrote in message
news:6y******** *******@fe04.lg a...
I have transferred the data from Access to MySQL using
MySQL's tool. The transfer worked great and saved me a
lot of time (thanks MySQL). Now I'm trying to get the
Access database, or a new access database, to talk across
ODBC and see the data.

I created the DSN through the control panel and it works
without error.

How do I setup Access so it can see the data. The data
was on windows (M$ Access) and is now on linux (Fedora
Core 5).

Followup: Seems like it connects, the 'Test' in the DSN
definition returns data. I turned on logging through
the DSN dialog and I see traffic between the DSN/application
(MS Access) and the MySQL server. Still, I do not see
anything usable returned from the MySQL server to Access.
You do have the the MySQL ODBC driver installed on the Windows machine -
yes?

Investigate "linked tables" in Access. Linked tables can be pointers to
tables residing on a MySQL server but look and act as if they were ordinary
Access tables. You can program away using Microsoft tools in blissful
disregard of the fact that the data actually resides on a MySQL/Linux
server.

If you already have an ODBC data source defined - you can right click on the
[Tables] pane of Access and select the Linked table wizard to help you set
them up.

Also - check out pass through queries.

Thomas Bartkus


Jul 25 '06 #2
Permissions also may play a role in this. I have a computer at wor
(Windows 2000) on which I am not an administrator. Although I
installed the MySQL ODBC driver, and set up and tested the ODBC
connection, when I actually launch Access and try to import tables from
the MySQL database, nothing happens. No error messages, nothing.

On my personal laptop (Windows XP) on which I AM the administrator,
this works very smoothly. I don't know if the difference here is
between 2000 vs XP or admin vs non-admin, but my suspicion is that
permissions may play a role.

Andy
Mike wrote:
I have transferred the data from Access to MySQL using
MySQL's tool. The transfer worked great and saved me a
lot of time (thanks MySQL). Now I'm trying to get the
Access database, or a new access database, to talk across
ODBC and see the data.
Jul 25 '06 #3
On 2006-07-25, Thomas Bartkus <th***********@ comcast.netwrot e:
"Mike" <mi***@mikee.at h.cxwrote in message
news:6y******** *******@fe04.lg a...
>I have transferred the data from Access to MySQL using
MySQL's tool. The transfer worked great and saved me a
lot of time (thanks MySQL). Now I'm trying to get the
Access database, or a new access database, to talk across
ODBC and see the data.

I created the DSN through the control panel and it works
without error.

How do I setup Access so it can see the data. The data
was on windows (M$ Access) and is now on linux (Fedora
Core 5).

Followup: Seems like it connects, the 'Test' in the DSN
definition returns data. I turned on logging through
the DSN dialog and I see traffic between the DSN/application
(MS Access) and the MySQL server. Still, I do not see
anything usable returned from the MySQL server to Access.

You do have the the MySQL ODBC driver installed on the Windows machine -
yes?

Investigate "linked tables" in Access. Linked tables can be pointers to
tables residing on a MySQL server but look and act as if they were ordinary
Access tables. You can program away using Microsoft tools in blissful
disregard of the fact that the data actually resides on a MySQL/Linux
server.

If you already have an ODBC data source defined - you can right click on the
[Tables] pane of Access and select the Linked table wizard to help you set
them up.

Also - check out pass through queries.

Thomas Bartkus
Found it finally. Microsoft was/is 'helping' me. One of the updates from
Microsoft updated the file c:\winnt\system 32\msjet40.dll to version 4.9025.
This version does not work talking to MySQL (at least not version 5.x that
is on my Fedora Core 5 box). At Microsoft (http://support.microsoft.com/kb/829558/)
there is SP8 for Jet 4.0. Pull the version for your OS (95/98/2000/Xp/etc),
execute the program like you're going to do the update, remember the filename
where files are extracted. In that file grab the file msjet40.dll. Do a
properties on this file. The version should be 4.0.8015.0. That version works
on my box. Rename the file in c:\winnt\system 32\msjet40.dll (I used msjet40.dll.902 5)
and copy the SP8 file to the name msjet40.dll. No reboot is required and I
can now link to my MySQL data.

Thanks for everone's help.

Mike
Jul 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1386
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong Li (likong@email.com)
1
3054
by: Mansoor Azam | last post by:
We connect to a SQL 6.5 server (IP for example 202.64.213.11) on WIN NT using ODBC DSN and / or SQL Client (DB-LIB). Everthing was working fine then the some XP client machines (192.168.0.1 and 192.168.0.3) started giving problems. All TCP/IP connections go thru the WIN 2000 multihomed machine (192.168.0.2 where its connecting fine). The error when creating ODBC DSN is Connection failed: SQLState: '01000' SQL Server Error: 10054...
3
1407
by: nzanella | last post by:
Hello, I have MS SQL Server running on a server computer. I am trying to connect to it via ASP from a .asp file created in a virtual directory. I am using IIS as the web server. I am connecting from a Windows 2000 computer. When I go to Start -> Settings -> Control Panel -> Administrative Tools -> ODBC Data Sources
3
6898
by: Roy Souther | last post by:
Trying to get the unixODBC to work connecting to an IBM DB2 UDB V8.1. The DB2 server is running on Red Hat 8 and is tested and confirmed to be serving connections to Windows 98 clients using the Accpac 5.1 client program (I would like to find an OpenSource generic ODBC program for Wiindows that can do simple SQL). An Accpac database was installed and the Win32 ODBC connection is working. Trying to connect a Linux client via unixODBC I...
0
1695
by: Asim | last post by:
I seem to be having a lot of problems with running/developing web site on my XP Professional OS. I have a simple web site (using ASP/VB), which retrieves information from an Access 2000 database. I have MS Access XP installed on my machine. When I open the database in Access and try to open up a page, I get this error: Microsoft OLE DB Provider for ODBC Drivers error '80004005' Could not use '(unknown)'; file
9
17017
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to access any of the Oracle tables on another machine but now I am having problems. Unfortunately, I don't remember the correct syntax for the ODBC connect string and I am hoping that is my whole problem. I am trying to connect to an Oracle 9...
1
1566
by: Kavvy | last post by:
I'm working on a Win app and in the Data tab there are only classes for OleDB and Sql. I create an OleDB (Using the Microsoft OLE DB Provider for ODBC) connection to my Access DB, but it throws the following error when I try to actually drag a table onto the form. "You cannot use a OLE DB provider for ODBC drivers" Any ideas on what might be wrong?
4
1789
by: CodeImp | last post by:
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using System.Data.SqlClient; using System.Threading; namespace TestSQL { class Class1
3
2694
by: Paradox Synthesist | last post by:
hi, i am a newbie to asp.net and have started learning mainly from websites. i have a question which IS very silly and trivial. http://msdn2.microsoft.com/en-us/library/system.data.odbc.odbcconnectionstringbuilder.dsn(VS.80).aspx i looked through this url to see how could i connect to a mysql database...where does the dsn figure out? why do i need to give it? i cant see any dsn specified anywhere on the database control panel. i am a...
0
8031
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8443
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8107
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8315
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6792
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.