As a
minimum you should:
make
sure both pc's bde are pointing to the same netfile, and preferably have this in
a separate subdir, e.g.
\appdir\data
\appdir\data\netdir
...
set
localshare true on both pc's
on
your app startup, set the session.netdir, and also set the session.privatedir
for temp files.
e.g.,
in your datamodule.create before connecting the database and opening
tables:
dbMain.close;
Session.open; s := DataDir + '\NetFile'; ForceDirectories(s) ; Session.NetFileDir := s; // shared dir under data dir on server Session.PrivateDir := FileUtil.GetTempDir; // users local drive for temp files dbMain.Params.Clear; dbMain.Params.Values['PATH'] := DataDir; dbMain.Open;
OpenTables(self);
... regards,
Steve
|
- [DUG]: Multi user data Laurie Bisman
- Re: [DUG]: Multi user data Bevan Edwards
- Re: [DUG]: Multi user data Craig Goodall
- Stephen Barker