This is my code:
OdbcConnection odbcConn = new OdbcConnection("DSN=VIP_Company355");
try
{
odbcConn.Open();
int pleaseReachMe = 5;
}
catch (Exception ex)
{
}
When the debugger reaches
odbcConn.Open();
It does not return, and it does not throw an exception. The documentation says that the default time out is 15 seconds. But after 15 seconds have passed, no exception is thrown. Also, if I replace my connection string with a nonsense value, it throws an error immediately.
Any ideas?
Edit:
I enabled ODBC Data Source Administrator's tracing, and it left the following in the log file:
parentProcessId 1518-2754 ENTER SQLDriverConnectW
HDBC 0x005BF570
HWND 0x00000000
WCHAR * 0x63118B34 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x63118B34
SWORD -3
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
(only the last statement is included for brevity) It entered the SQLDriverConnectW procedure, but it never exists it.