.

HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1 212-599-2048

Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development

Facebook Twitter YouTube
Chat now       
.
ProductsDownloadsNewsAbout usContact


Need a Domino Consultant? Call NotesMail +1 212-599-2048 - HCLSoftware Business Partner

JAVA/CORBA CLASSES


getDatabase method
Example

Creates a Database object that represents the database located at the server and file name you specify, and opens the database, if possible.

Defined in

Session

Syntax

public Database getDatabase(String server, String db)
   throws NotesException

public Database getDatabase(String server, String db, boolean createonfail)
   throws NotesException

Parameters

String server


String db
boolean createonfail
Return value

Database


Usage

An error is returned if the user does not have access rights to the database or server.

A Java application running on the same machine as a Domino server cannot open a local database from a local session. Use a remote (IIOP) session to access the database.

See the Database class for additional descriptions and examples.

Language cross-reference

GetDatabase method in LotusScript NotesSession class

FileOpenDatabase @command in formula language

Example
See Also