OpenWithFailover (NotesDatabase - LotusScript®)

Opens a database on a server.

Note: This method is not supported in COM.

Defined in

NotesDatabase

Syntax

flag = notesDatabase .OpenWithFailover( server$ , dbfile$ )

Parameters

server$

String. The name of the primary server on which the database resides.

dbfile$

String. The file name of the database to open.

Return value

  • True indicates that the database exists and was opened.
  • False indicates that there is no database with this name in the cluster.

Usage

The object Server and FilePath properties reflect the actual server on which the database is opened.

A script needs at least Reader access to a database in order to call Open. An error is returned if the script does not have access.

If the database can't be opened on the specific server but the server belongs to a cluster, OpenWithFailover automatically looks for a replica of the specified server on the same cluster. If the method finds a replica, that database is opened instead, and the server property adjusts accordingly.

Example