Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Session.createBlankDatabase(folder, fileNamefilePath) allows a new database to be created / retrieved in the Data directory of the server / workstation running the code. The first parameter is the folder / folders to create the database in. Use File.separator for the relevant folder separator for the operating system. The second parameter is the filename without any folder prefixand filename. If the filename is missing a ".nsf" or ".ntf" suffix, that gets automatically appended. NOTE: This method cannot be used to create a .ntf fileIf no database exists at that location, one is created and retrieved. Otherwise the database at that file location is returned.
  2. Session.createBlankDatabase(DbDirectory, filePath) allows a new database to be created in the Data directory of another server. The first parameter is the DbDirectory object for the server on which to create or retrieve the blank database. Otherwise it works the same as previously.
  3. Session.createBlankDatabaseAbsolutePath(folder, fileNamefilePath) allows a new database to be created in a specific location, e.g. C:\Temp. This could also be used

The APIs use DbDirectory methods to create

...

The APIs interact directly with the filesystem.

the database running as the server.