🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #13

Re: ADOConnection, ADOTable, ADOQuery Basics

#13
From: Clayton Arends
Date: Tue, 26 Feb 2008 13:58
39 lines
3294 bytes
"Sudesh" <sudeshc@vfemail.net> wrote in message 
news:47c38262@newsgroups.borland.com...

> let me give you a simple example. a quiz program.
> database and quiz application exe will reside on server and program will
> be accessed from a number of clients, say 300. Concurrent read (for
> accessing questions)and write (saving marks at the end of quiz time)
> operation will be required.
> any tips for this?

If you are not concerned about security then you can go with a simple 
client/server model.  All clients would have direct access to the database 
tables and would be able to read and write as needed.  This might become 
problematic if you have some adventursome students that write custom 
applications to look at the table structure and adjust their answers (or 
hack the answers of others).

If you are concerned with security then depending on the database you can 
configure each user to be able to only perform certain tasks like inserting 
records on particular tables (the quiz answers table, for example).  Or, if 
that's not possible you could also take a 3 tier approach where you write a 
server application that resides on the database server (or at least on the 
same side of the firewall) that serves questions to the clients and reads 
answers from the clients.  You will need to look into how to write 
TCP/Client and TCP/Server apps using Indy or other tools to complete this 
task.

> which is the best and fastest database? MS Access is ok?

MS Access is okay for multiple concurrent reads but I have read that it does 
not work very well for multiple concurrent writes.  I don't have the details 
I just remember this being a problem for a lot of people in the past.  A 
better choice is SQL Server.  You can also go with MySQL, Oracle Lite, SQL 
Server Express, etc.  Some may have nominal fees depending on your uses.

Note, if you go with the 3-tier approach MS Access will work fine since you 
can serialize all access to the database behind-the-scene.

Clayton 
Technical Details
Message-ID: <47c41b20$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47b97333@newsgroups.borland.com> <47bda663$1@newsgroups.borland.com> <47bdc08c@newsgroups.borland.com> <47bde596$1@newsgroups.borland.com> <47be3d98@newsgroups.borland.com> <47be651a$1@newsgroups.borland.com> <47c38262@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a49b6386b1d150d4
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Clayton Arends" <nospam_claytonarends@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <47b97333@newsgroups.borland.com> <47bda663$1@newsgroups.borland.com> <47bdc08c@newsgroups.borland.com> <47bde596$1@newsgroups.borland.com> <47be3d98@newsgroups.borland.com> <47be651a$1@newsgroups.borland.com> <47c38262@newsgroups.borland.com>
In-Reply-To: <47c38262@newsgroups.borland.com>
Subject: Re: ADOConnection, ADOTable, ADOQuery Basics
Date: Tue, 26 Feb 2008 05:58:49 -0800
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 68.185.45.89
Message-ID: <47c41b20$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204034336 68.185.45.89 (26 Feb 2008 05:58:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail