Read-only. The database in which the current agent resides.
public Database getCurrentDatabase()
throws NotesException
This property allows you to access a database without having to specify its server and file name. Using getCurrentDatabase can make programs more portable from one database to another.
CurrentDatabase property in LotusScript NotesSession class
See examples