Quote
Markus Plesser wrote:
> I am using a TDatabase-Component to set the alias dynamically.
> The app is designed for Win3.x/Win95/Win NT 4.0 and the source is
> designed to compile under D1 & D2 correctly. I dont know how to set the
> Paradox-Netfile-Dir. from my app. (Does anybody know how to do that).
Hello Markus,
a few days ago I posted a way to setup paradox files in a network,
perhaps it's usefull for you, too:
1. Store the tables in a directory on the server not on a (or all)
workstations.
2. Grant the rights the users should have (e.g. RF for users only
allowed to read data, RWMF for users allowed to modify data, etc.)
3. Very important: Make sure that all workstations have the same
mappings for the drives with the tables.
4a. Create another directory on the same network drive and grant RWCMEF
to all potential users of the tables for it.
4b. Start the BDE configuration programm and change the property
'netdir' of the Paradox driver to this directory.
4c. Alternativly you can add the following lines to the project file
(.dpr) before
any of the forms of your project are created:
Session.NetFileDir := 'Networkdrive:\NetworkDirectory';
Session.PrivateDir := 'LocalDrive:\LocalDirectory;
this commands will override the settings made in the BDE. If this files
stored in a
INI-file it's quite easy to
5. (optional) Create an Alias with the name of the directory you used
for your tables as the value of the 'databasename' property of this
alias.
6. Use this alias in your applications and in the IDE.
Quote
> Is it possible to upgrade to e.g. Interbase only by changing the Alias (via
> TDatabase) ???
Yes it is, but you don't want to do this. Database servers needs a
totally different kind of dataaccess to get a good performance, but as a
{*word*128}step it is possible.
Quote
> Is there a possibility to open locked tables in some sort of "read-only"
> mode ???
No, if a table is opened 'exclusive' no concurrent access is allowed.
Set this property to 'false' for all TTable objects you use in your
project (except for those you use for reindexing or packing).
Generally set all TTables to 'RoadOnly' if you don't have to write to
them, this will give you a (little) faster access.
If you have questions please feel free to send me a mail or post it to
the newsgroup.
HTH
Thomas
--
Thomas Scheffczyk
----------------------------------------------------------------
email: scheffc...@verwaltung.uni-mainz.de
home : http://www.verwaltung.uni-mainz.de/Dez1/edv/folks/scheff/