Solved

Multi-threads access to an SQL database !!!

Posted on 1998-11-24
1
125 Views
Last Modified: 2010-04-04
Hi,

 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 ?

Thank you

dan
0
Comment
Question by:mars
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 total points
ID: 1347753
Hi mars,

look for this at a technical paper of Inprise :

http://www.inprise.com/devsupport/delphi/ti_list/TI3005.html

and Brian Delumpa's article :

http://www.delumpa.com/tips/db/db01.htm

Regards, Zif.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question