Главная страница | назад

Article #19713: Using the native Access driver and ISAPI

 Question and Answer Database

     FAQ: FAQ4713C - Using the native Access driver and ISAPI
Category: Internet/WEB
Platform: All-32Bit
 Product: C++Builder3.x,   C++Builder4.x,   


Why can't I use the native Access driver in an ISAPI/NSAPI DLL?


Because neither DAO 3.0 or DAO 3.5 are thread-safe.
A web server (such as IIS) will always spawn different
threads and load the ISAPI DLL in the context of the
thread. The ISAPI DLL is then talking to the BDE which
talks to the DAO engine (not thread-safe).

So, if you need to write an ISAPI/NSAPI DLL talking to
Access 95/97 tables, you'll need to use Microsoft's
ODBC driver. The ODBC driver doesn't use the DAO engine,
and is thread-safe.

8/4/99 11:55:45 AM

Last Modified: 01-SEP-99