We help IT Professionals succeed at work.
Get Started

MS Access (VB) Runtime error 3146 ODBC Call Failed (connecting to mySQL)

stummj asked
Last Modified: 2012-08-23
Hi Experts

I have recently had to update mySQL from 5.1 to 5.5 with a MS Access 2003 front end (via ODBC links)

When I run some legacy SQL queries on Access using a form I inherited (and worked fine before the rebuild) I am getting Visual Basic Error 3146 ODBC Call Failed.

I can run the code directly within mySQL so I am at a loss what the problem might be.

I have switched ODBC Tracing on, and get the following fragment in the log - which doesnt really help much:

InterconnecTRep 90-14f0      EXIT  SQLExecDirect  with return code -1 (SQL_ERROR)
            HSTMT               0FA83860
            UCHAR *             0x11CF44B4 [    2010] "## This report currently includes ...(SQL is in here)"            SDWORD                  2010

            DIAG [S1000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.27-log]Query execution was interrupted (1317)

Does anyone know how I can force more detail on the 3146 error, so it shows me what the *real* problem is?

Watch Question
President / Owner
Most Valuable Expert 2017
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE