Re: ADO Threads and Connection Pooling

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 01/07/04


Date: Tue, 06 Jan 2004 21:09:08 -0600


>What does the statement "ADO is thread safe" actually mean?

You can use ado in threads other than the main thread

>I want to create a multi-threaded data processing application. Probably
>main plus three threads, all accessing the same SQL Server database.
Even if the result is a slower application?

>
>Am I best to have one universal TADOConnection that all the threads use, or
>do I need a separate TADOConnection created in each thread.
Any components you use need to be created in the thread you use them in.
You can have a datamodule that you create an instance of for each thread.

>
>If I do need a TADOConnection per thread, how do I invoke connection
>pooling?
SQL server handles connection Pooling independent of using threads in your
application. Unless you have a very high demand database application making it
a multi threaded application will probably result in a slower application.

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Re: SQL server question
    ... Microsoft is deprecating it even for new development, ... An Access project is an Access file that provides a direct, ... You can connect an Access project to a remote SQL Server ... a local SQL Server database, or a local installation of the SQL Server ...
    (comp.databases.ms-access)
  • Exactly How to Use Disconnected Recordsets in VB / SQL Server Application
    ... Front-end is VB 6.0, back-end is SQL Server 2000 (actually, MSDE since ... underlying SQL Server database w/the assumption that the user *might* ... the local disconnected recordset on the user's machine would seem to ... time to update each and every record as each user scrolls through the ...
    (microsoft.public.vb.database)
  • Re: DataSet.GetChanges() in RowChanged(DataRowAction.Add)
    ... if the way synchronization needs to be handled changes in the ... > data stored in an SQL Server database. ... > GetChanges() call, but I feel that this workaround is not my best choice. ...
    (microsoft.public.dotnet.framework.adonet)
  • VBA Microsoft Access and SQL Server
    ... I am currently working on a project with Power Point. ... into a Microsoft SQL Server database. ... information from the Microsoft SQL Server database and re-populate a Power ...
    (microsoft.public.office.developer.vba)
  • Re: curious problem in production
    ... thank for the lesson on unique keys, but I suggest you read the question ... I am getting an exception from sql server ... >> trying to insert into the same sql server database. ...
    (microsoft.public.sqlserver.server)