473,549 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access + MySQL = ODBC-call failed... sometime

Hello all,

I'm using:
- A97 (front-end)
- MySQL drivers 3.51
- MySQL 4.0.18 (back-end)

I've got a MySQL table connected to an Access DB throw an ODBC link. When I
connect to this table, no matter the query, a connection is created in
MySQL. Initialy, this connection stayed opened 8 hours (default. controled
by a MySQL variable "wait_timeout") . We had trouble with this (too much
connections opened at the same time) so we get this down to 250 seconds.
Now, when whe create a connection, it is being closed after 250 seconds,
then the next call made from access to this table (for the same user) will
invariably produce an "ODBC-call failed" error message. Then the next call
is OK... for the next 250 seconds.

Anyone has clue on how to solve this. In my test, I do not use specific
recordset but instead, the DLookUp function in Access. So there is no "no
closed recordset" consideration here.

Thanks for your time.

Yannick

PS. Didn't find a MySQL newsgroup on my news server... curious. I'll search
on the web.
Nov 13 '05 #1
3 3481
I understand that this is a bug in Access 2002 (and probably 2003) with ODBC
links to just about anything except MS SQL Server or Oracle.

On Fri, 4 Jun 2004 11:44:44 -0400, "Yannick Turgeon" <no****@nowhere .com>
wrote:
Hello all,

I'm using:
- A97 (front-end)
- MySQL drivers 3.51
- MySQL 4.0.18 (back-end)

I've got a MySQL table connected to an Access DB throw an ODBC link. When I
connect to this table, no matter the query, a connection is created in
MySQL. Initialy, this connection stayed opened 8 hours (default. controled
by a MySQL variable "wait_timeout") . We had trouble with this (too much
connections opened at the same time) so we get this down to 250 seconds.
Now, when whe create a connection, it is being closed after 250 seconds,
then the next call made from access to this table (for the same user) will
invariably produce an "ODBC-call failed" error message. Then the next call
is OK... for the next 250 seconds.

Anyone has clue on how to solve this. In my test, I do not use specific
recordset but instead, the DLookUp function in Access. So there is no "no
closed recordset" consideration here.

Thanks for your time.

Yannick

PS. Didn't find a MySQL newsgroup on my news server... curious. I'll search
on the web.


Nov 13 '05 #2
Steve Jorgensen <no****@nospam. nospam> wrote in
news:nl******** *************** *********@4ax.c om:
I understand that this is a bug in Access 2002 (and probably 2003)
with ODBC links to just about anything except MS SQL Server or
Oracle.


How exactly does this cause Access97 to break (which is what the
original poster is using)?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3
On Fri, 04 Jun 2004 17:52:58 GMT, "David W. Fenton"
<dX********@bwa y.net.invalid> wrote:
Steve Jorgensen <no****@nospam. nospam> wrote in
news:nl******* *************** **********@4ax. com:
I understand that this is a bug in Access 2002 (and probably 2003)
with ODBC links to just about anything except MS SQL Server or
Oracle.


How exactly does this cause Access97 to break (which is what the
original poster is using)?


Oops - my bad, then. Sorry about that.
Nov 13 '05 #4

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

Similar topics

0
4984
by: Fatt Shin | last post by:
Hi, I'm running MySQL 4.0.13, connecting from PowerBuilder 9 using ODCB Connector 3.51. I'm facing a problem where whenever I issue a SELECT COUNT(*) statement from PowerBuilder, I always get SQL syntax error back from MySQL. (Refer to ODBC Trace I captured below). metrohouse af8-b94 ENTER SQLExecDirect HSTMT 014D2360...
2
2184
by: Ben | last post by:
I have a query that takes over a minute to run with the mysql client. The same query takes seconds in MS Access via ODBC. I have no clue what is going on. Can someone kindly shed some light on this. I am using: mysql Ver 12.18 Distrib 4.0.12, for Win95/Win98 (i32) mysqld-nt Ver 4.0.12-nt for NT on i32
0
8292
by: Edmond Doudard | last post by:
Hi, I have just installed the MySQL ODBC driver 3.51 on an XP machine which is behind a proxy. When I configure my DSN, I can't access the MySQL server which is in the "outside" world. I get this error: Unknown MySQL Server Host 'mysqlserver.com'
16
27880
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my own LAN, the driver tells me it cannot make the connection. Here are the ODBC driver connection parms: Data Source Name: (free field - name my "my...
11
17531
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time to load making any kind linkage with my Access data virtually useless. I have the MySQL driver setup in as a USER DSN. The MySQL data is...
3
2384
by: Bob | last post by:
All, I have read through lots of postings regarding my concerns, but I haven't found what I am looking for. The center (non profit University) where I work collects scientific data about subjects enrolled in studies related to respiratory diseases. Both lab data and questionnaire information are collected. We use W2K as PC operating...
1
2434
by: gordon.dtr | last post by:
Hi, Has anyone had this problem ? I am using MySQL ODBC 3.51 Driver, with MS Access 2003 and MySQL 4.1.11 standard log. I created my tables in MS Access, then exported them via ODBC to an externally hosted MySQL database (fasthosts) . I then import-linked
1
1601
by: laxgb | last post by:
Hi I tried to use following code to access MySQL database but the error 'Object reference not set to an instance of an object' was happened: Dim MyConString As String = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost; DATABASE=xxxx; UID=xxxx; PASSWORD=xxxx; OPTION=3" Dim MyConnection As New System.Data.Odbc.OdbcConnection(MyConString) ...
0
1125
by: luttkens | last post by:
Hi I've made an application in .Net which connects to a MySQL database via remote access. It all works fine - if the user has installed the MySql ODBC Driver on it's machine. My question is how I can include the MySQL ODBC Driver in the MSI-file (created in Visual Studio)? I want the driver to be installed automatically if the users doesn't...
3
5213
by: Suresh P | last post by:
Hi All, I tried to access the mysql database in ODBC using ip address and username/password. It returns, "cannot connect to MySQL server on IP ADDRESS(10060)". This could be related to Firewall on the server. Is there anyway to access MySQL database using ODBC without opening port 3306?
0
7459
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7819
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...
0
6052
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...
1
5377
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5097
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...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1064
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.