OpenWithFailover (NotesDatabase - LotusScript®)

Opens a database on a server.

Note: This method is not supported in COM.

Defined in



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



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


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.


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.