Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Getting actual error string with ODBC to Oracle
If I use SQLPlus, I can type in some 'bad' SQL and it gives me this:
1 select
2 joe
joe *
I'm using Oracle ODBC driver to execute my SQL, and all I get is the last error message (that there is an invalid column name, but no indication of where in the SQL the error actually exists). Obviously SQLPlus gets some information back about what line and text 'column' the error is at.
Do anyone know how to get that same information (line & text column) via ODBC? [I've tried the SQLError, SQLGetDiagRec and SQLGetDiagField functions, but still only get the basic error message.]
Thanks in advance for any help. If you reply to this, please copy me via email as well.
/kjs
ps- or conversely, if you know that OCI supports this functionality, I'd be interested also. Received on Mon Sep 16 2002 - 23:40:44 CDT