MFC CRecordset/CDatabase login timeout

MFC CRecordset/CDatabase login timeout

Post by Per Paulse » Wed, 03 Mar 1999 04:00:00



I use a CRecordset derived class created with classwizard MSVC++ 6.0.
My datasource is connected to sqlserver 6.5 or oracle 7.3.

I need to control the connection time and if the datasource doesn't
respond within 10 seconds I want to ignore it.

How can I control the login timeout when connecting to my datasource ?
It seems that CDatabase::SetLoginTimeout() does not work ?


Thanks,
-per

 
 
 

1. MFC CRecordset/CDatabase login timeout

I use a CRecordset derived class created with classwizard MSVC++ 6.0.
My datasource is connected to sqlserver 6.5 or oracle 7.3.

I need to control the connection time and if the datasource doesn't
respond within 10 seconds I want to ignore it.

How can I control the login timeout when connecting to my datasource ?
It seems that CDatabase::SetLoginTimeout() does not work ?


Thanks,
-per

2. database modelling tools

3. ODBC Drivers for Access

4. MFC CDatabase and CRecordSet classes???

5. URGENT : how to terminate a running task?

6. Implementation of MFC classes (CDatabase, CRecordset) based on OCI (in replacement of ODBC)

7. JDBC: write Resultset to a new table?

8. ADO and MFC CRecordset, CDatabase

9. Login timeout in with CDatabase::OpenEx

10. sos, urgent problem about CRecordset and CDatabase;

11. CDatabase, CRecordset and .dbf files

12. CDatabase , CRecordSet and Oracle DSN!