Solved

Multi-threads access to an SQL database !!!

Posted on 1998-11-24
1
128 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 104
Delphi TcxGrid group footer summary 3 316
Unique identifier on a terminal server (rdp) 4 67
RESTRequest Parameter 4 42
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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