If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Get meaningful error messages…

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-05, 05:01
Odders Odders is offline
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 15
Get meaningful error messages…

I have msAccess clients running smoothly with MySQL backend via ODBC.

When I test the execution of various invalid sql statements the only error received is 3146 'ODBC--call failed’.

Is it possible to query MySQL to discover more detail regarding the last error and return a more meaningful message?
Reply With Quote
  #2 (permalink)  
Old 02-17-05, 07:34
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
yes, it is

test your queries with a front end tool like phpmyadmin or mysql-front or sqlyog or any of a dozen similar ones, some of them even free
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 02-17-05, 07:56
Odders Odders is offline
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 15
How do I extract error-codes and error-mesages AFTER a failed query.

(not how to create queries that don't fail)
Reply With Quote
  #4 (permalink)  
Old 02-17-05, 11:50
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
i think that would be an odbc question, not a mysql question

and meanwhile, testing your queries where you can see the error messages is still advised

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On