Multi-threads access to an SQL database !!!
Posted on 1998-11-24
In the documentation, it said that if we access to the same
SQL database with threads, we must create one session for one thread.
I've created an application which has opened an SQL database
and then has started two threads to query the same database.
The application works fine and is programed by using BDE functions.
1) Could you explain me the use of multiple threads accessing the same database, one per session.
2) Is my application reliable by using one session and two threads ?
3) What does it must be protected between threads, a session, a database or a table handle ?