was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews
 sonstiges ¦  tutorials ¦  Add&Win Gewinnspiel

Tips (1541)

Dateien (137)
Datenbanken (90)
Drucken (35)
Grafik (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Mathematik (76)
Multimedia (45)
Oberfläche (107)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (126)
Strings (83)
System (266)
VCL (242)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

43 Visitors Online


 
...eine (Paradox)-DB im Netzwerk verwenden?
Autor: Peter Simon
[ Tip ausdrucken ]  

Tip Bewertung (8):  
     


If you use a database (tables) on a shared network,
you can enhance efficiency by setting a number of properties
of the TSession component.
The TSession component manages a database session.

First of all, Session.PrivateDir should be assigned to a local directory,
like C:\WINDOWS\TEMP (you can do this in the OnCreate event of your DataModule,
for example).
The PrivateDir will contain the result of a local Query
(which is a table in itself), and a local table is of course much faster
than a table on the network (LAN or otherwise).

Second, Session.NetFileDir should be assigned to the same physical value
for every user, like 'X:\BORLAND.COM\BDE' (this also can be done during
initialisation).

{***}

Um auf eine PARADOX-DB von mehreren Benutzern aus zugreifen zu können,
muss als Grundlage natürlich erst mal die BDE überall installiert sein.

Zuerst soll Session.PrivateDir ein lokales Verzeichnis zugewiesen werden.
(z.B C:\WINDOWS\TEMP). Dieses Verzeichnis enthält dann die Rückgabedaten aus
einer Abfrage.

Die Datenbanken an sich können dann zentral auf einem Netzlaufwerk
(hier z.B. 'X:\BORLAND.COM\BDE') abgelegt werden, sodass alle Benutzer
darauf zugreifen können.
Es ist allerdings wichtig, dass SESSION.NETFILEDIR im Programm definiert wird.

procedure TForm1.FormCreate(Sender: TObject);
begin
session.netfiledir:= 'X:\BORLAND.COM\BDE' ;
end;

 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners