Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: standard c question Pin
Prakash Nadar30-Mar-04 15:00
Prakash Nadar30-Mar-04 15:00 
GeneralSSL and 503 FTP Error :: Socket Pin
valikac30-Mar-04 11:14
valikac30-Mar-04 11:14 
GeneralWM_COPYDATA Pin
Dave_30-Mar-04 10:36
Dave_30-Mar-04 10:36 
GeneralRe: WM_COPYDATA Pin
l a u r e n30-Mar-04 15:25
l a u r e n30-Mar-04 15:25 
GeneralRe: WM_COPYDATA Pin
Dave_31-Mar-04 2:03
Dave_31-Mar-04 2:03 
GeneralRe: WM_COPYDATA Pin
l a u r e n31-Mar-04 5:42
l a u r e n31-Mar-04 5:42 
GeneralRe: WM_COPYDATA Pin
Dave_1-Apr-04 7:29
Dave_1-Apr-04 7:29 
GeneralShell Open Occured Pin
sschilachi30-Mar-04 9:52
sschilachi30-Mar-04 9:52 
GeneralRe: Shell Open Occured Pin
Michael Dunn30-Mar-04 11:16
sitebuilderMichael Dunn30-Mar-04 11:16 
GeneralRe: Shell Open Occured Pin
sschilachi30-Mar-04 23:15
sschilachi30-Mar-04 23:15 
Generalpro engineer.... wild fire... AHHHH Pin
OMalleyW30-Mar-04 9:52
OMalleyW30-Mar-04 9:52 
GeneralRe: pro engineer.... wild fire... AHHHH Pin
Prakash Nadar30-Mar-04 14:58
Prakash Nadar30-Mar-04 14:58 
GeneralRe: pro engineer.... wild fire... AHHHH Pin
OMalleyW30-Mar-04 22:47
OMalleyW30-Mar-04 22:47 
GeneralRe: pro engineer.... wild fire... AHHHH Pin
Prakash Nadar31-Mar-04 2:29
Prakash Nadar31-Mar-04 2:29 
GeneralNetwork availability change events Pin
JT Anderson30-Mar-04 9:15
JT Anderson30-Mar-04 9:15 
GeneralRe: Network availability change events Pin
David Crow30-Mar-04 9:20
David Crow30-Mar-04 9:20 
GeneralRe: Network availability change events Pin
JT Anderson30-Mar-04 9:43
JT Anderson30-Mar-04 9:43 
GeneralStretchBlt replacement Pin
#realJSOP30-Mar-04 9:07
professional#realJSOP30-Mar-04 9:07 
GeneralRe: StretchBlt replacement Pin
Prakash Nadar30-Mar-04 14:56
Prakash Nadar30-Mar-04 14:56 
GeneralRe: StretchBlt replacement Pin
#realJSOP31-Mar-04 0:57
professional#realJSOP31-Mar-04 0:57 
GeneralRe: StretchBlt replacement Pin
Prakash Nadar31-Mar-04 2:12
Prakash Nadar31-Mar-04 2:12 
GeneralSpecified driver could not be located due to system error 5 Pin
ElizabethC30-Mar-04 8:30
ElizabethC30-Mar-04 8:30 
GeneralRe: Specified driver could not be located due to system error 5 Pin
Antti Keskinen30-Mar-04 8:40
Antti Keskinen30-Mar-04 8:40 
GeneralRe: Specified driver could not be located due to system error 5 Pin
ElizabethC30-Mar-04 8:53
ElizabethC30-Mar-04 8:53 
GeneralRe: Specified driver could not be located due to system error 5 Pin
Antti Keskinen30-Mar-04 21:22
Antti Keskinen30-Mar-04 21:22 
For all possible ODBC error codes, you can see the MSDN for ODBC Programmer's Reference Appendix A: ODBC Error Codes.

In order to see the true error caused by your application, catch all return values by type SQL_ERROR and then seeing CDBException::m_strStateNativeOrigin. In this string, the first 'State' string can be found from the ODBC Error Codes list.

From the forementioned list, the state code 08004 means 'Server rejected the connection'. This, by using free intrepretation, can be understood as 'Invalid logon' as well.

There is an ODBC Query Tool around in CodeProject that has a source code attached. If you can't find any other solution, try browsing through this source code and seeing how it handles return values from the ODBC driver manager.

The tool's page can be found from here[^]. Written by George Poulose.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.