🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Interesting new problem

#1990
From: Ted Byers
Date: Fri, 05 Dec 2003 01:51
42 lines
2913 bytes
"Dwayne" <myfrienddr@yahoo.com> wrote in message
news:3fcfb8ea@newsgroups.borland.com...
>         Hello Ted,
>
> Ted >> If the latter, how can I protect
> against the possibility that the user uses MS Access to change the data so
> as to violate, however inadvertently, this constraint?  Right now, I am
> relying on the fact that my program does not add any value to the second
> that isn't in the first, but this strikes me as a little risky, given the
> possibility of curious eyes getting into the DB using MS Access.<<
>
>         Open the Dbase as exclusive access only. I believe this will solve
> your problem.
> I have not checked it out yet to confirm,  But give it a try.
>
>
Hi  Dwayne

Thanks

I aleady do.  The problem isn't when my program is running.  The problem is
when it isn't.  The database files are just mdb files, MS Access's native
format, and if the user has Access installed, there is nothing to prevent
him from using Access to open the database and play with the data.  In fact,
there is a trivial cosmetic error in two records in the USDA database which
is easiest to fix by opening the file in Access, finding the relevant
records in the relevant table, and correcting the error. If theuser has the
ability to do this, he also has the ability to open the other database files
and mess witht he data without the safeguards built into my code.  What I'd
like to be able to do is submit an SQL statement to one of the database
files in order to establish a relationship between a field in a table in
that file and a field in a table in another file, so that if the user knows
enough to be able to open and edit tables using Access, he'd have to
deliberately break that connection before he could mess up the required
relationships (so, when the user opens these files in Access, Access would
open both by default and check the relational integrity of any edit he
makes, unless he knows enough about Access to break that relationship).

Cheers,

Ted
Technical Details
Message-ID: <3fcfe5aa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fc65fc9@newsgroups.borland.com> <3fcfb8ea@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,b014de63272f8cbe
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-12-04 18:09:30 PST
From: "Ted Byers" <r.ted.byers@sympatico.ca>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3fc65fc9@newsgroups.borland.com> <3fcfb8ea@newsgroups.borland.com>
Subject: Re: Interesting new problem
Date: Thu, 4 Dec 2003 20:51:43 -0500
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 65.95.242.19
Message-ID: <3fcfe5aa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070589354 65.95.242.19 (4 Dec 2003 17:55:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail