Skip to main content

NotesDatabase

Properties

NameDescription
ACLRead-only. The access control list for a database.
ACLActivityLogRead-only. The log from the access control list for a database.
AgentsRead-only. All of the agents in a database.
AllDocumentsRead-only. All the documents in a database.
CategoriesRead-write. The categories under which a database appears in a database catalog.
Created (NotesDatabase)Read-only. The date/time that a database was created.
CurrentAccessLevelRead-only. The current user's access level to a database.
DelayUpdatesRead-write. Indicates whether updates to a server are delayed (batched) for better performance.
DesignTemplateNameRead-only. The name of the design template from which a database inherits its design. If the database does not inherit its design from a design template,…
EncryptionStrengthThe encryption strength of a database.
FileFormatRead-only. The ODS (on-disk structure) version of a database.
FileNameRead-only. The full file name of a database, including the extension but excluding the path.
FilePathRead-only. The path and file name of a database. The file name includes the NSF extension.
FolderReferencesEnabledRead-write. Indicates whether this database maintains folder references for documents.
FormsRead-only. All the forms in a database.
FTIndexFrequencyRead-write. Update frequency of a database's full-text index.
HttpURL (NotesDatabase)Read-only. The Domino® URL of a database when HTTP protocols are in effect.
IsClusterReplicationRead-write. Indicates whether cluster replication is in effect for a database on a server in a cluster.
IsConfigurationDirectoryRead-only. Indicates whether a database is a Configuration Directory database.
IsCurrentAccessPublicReaderRead-only. Indicates whether the current user has public reader access in a database.
IsCurrentAccessPublicWriterRead-only. Indicates whether the current user has public writer access in a database.
IsDesignLockingEnabledRead-write. Indicates whether design locking is enabled for a database.
IsDocumentLockingEnabledRead-write. Indicates whether document locking is enabled for a database.
IsFTIndexedRead-only. Indicates whether or not a database has a full-text index.
IsInMultiDbIndexingRead-write. Indicates whether a database can be included in multi-database indexing.
IsInServiceRead-write. Indicates whether a database on a server in a cluster is accessible.
IsLinkRead-only. Indicates whether a database is the target of a link.
IsLocallyEncryptedIndicates whether a database is locally encrypted. Read-only.
IsMultiDbSearchRead-only. Indicates whether a database is of type "Multi DB Search."
IsOpenRead-only. Indicates whether a database is open.
IsPendingDeleteRead-only. Indicates whether a database on a server in a cluster is marked for deletion.
IsPrivateAddressBookRead-only. Indicates whether a database is a Personal Address Book.
IsPublicAddressBookRead-only. Indicates whether a database is a Domino® Directory.
LastFixupRead-only. The date that a database was last checked by the Fixup task.
LastFTIndexedRead-only. The date that a database full-text index was last updated.
LastModified (NotesDatabase)Read-only. The date/time that a database was last modified.
LimitRevisionsRead-write. The maximum number of entries allowed in the $Revisions field.
LimitUpdatedByRead-write. The maximum number of entries allowed in the $UpdatedBy field.
ListInDbCatalogRead-write. Indicates whether a database appears in database catalogs.
ManagersRead-only. People, servers, and groups that have Manager access to a database.
MaxSizeRead-only. Shows the maximum size assigned to the database when the database was created.
NotesURL (NotesDatabase)Read-only. The Domino® URL of a database when Notes® protocols are in effect.
Parent (NotesDatabase)Read-only. The Notes® session that contains a database.
PercentUsedRead-only. The percent of the total size of a database that is occupied by real data (and not empty space).
ReplicaIDRead-only. A 16-character combination of letters and numbers that represents the replica ID of a Notes® database. Any databases with the same replica ID…
ReplicationInfoRead-only. Provides access to a NotesReplication object. Each NotesDatabase instance contains one NotesReplication object.
Server (NotesDatabase)Read-only. The name of the server where a database resides.
Size (NotesDatabase)Read-only. The size of a database, in bytes.
SizeQuotaRead-write. The size quota of a database, in kilobytes.
SizeWarningRead-write. The size warning threshold of a database, in kilobytes.
TemplateNameRead-only. The template name of a database, if the database is a template. If the database is not a template, returns an empty string ("").
Title (NotesDatabase)Read-write. The title of a database.
Type (NotesDatabase)Read-only. Database type.
UndeleteExpireTimeRead-write. The number of hours before soft deletions become hard deletions.
UnprocessedDocumentsRead-only. The documents in a database that the current agent or view action considers to be "unprocessed." The type of agent determines which documents…
Views (NotesDatabase)Read-only. The views and folders in a database.

Methods

NameDescription
Compact (NotesDatabase)Compacts a local database.
CompactWithOptionsCompacts a local database allowing the submission of options.
CreateCreates a new database on disk, using the server and file name that you specify.
CreateCopyCreates an empty copy of the current database.
CreateDocumentCreates a document in a database and returns a NotesDocument object that represents the new document. You must call Save if you want the new document to…
CreateDocumentCollectionReturns an empty document collection.
CreateDominoQueryGets an instance of the NotesDominoQuery class for use in running DQL queries.
CreateFromTemplateCreates a new database from an existing database.
CreateFTIndex (NotesDatabase)Creates a full-text index for a database.
CreateNoteCollectionCreates a note collection based on the current database and returns a NotesNoteCollection object that represents the note collection.
CreateOutlineCreates a new outline within the current database and returns a NotesOutline object that represents the new outline. This method allows you to create a…
CreateQueryResultsProcessorGets an instance of the NotesQueryResultsProcessor class for use processing the document collections and output of DQL queries.
CreateReplica (NotesDatabase)Creates a replica of the current database at a new location.
CreateViewCreates a view.
DecryptDecrypts a database
EnableFolderGiven a folder name, enables the folder.
Encrypt (NotesDatabase)Encrypts a database.
FixupRuns the Fixup task on a database.
FTDomainSearchConducts a Domain Search, that is, a full-text search of all databases configured in the Domain Catalog database and marked as included for…
FTSearch (NotesDatabase)Conducts a full-text search of all the documents in a database.
FTSearchRangeConducts a full-text search of all the documents in a database.
GetAgentFinds an agent in a database, given the agent name.
GetDocumentByIDFinds a document in a database, given the document's note ID.
GetDocumentByUNIDFinds a document in a database, given the document universal ID (UNID).
GetDocumentByURLInstantiates a document in the database on which it is called and returns a NotesDocument object for it. This method is typically used for either the…
GetFormFinds a form in a database, given the form name.
GetModifiedDocumentsGets the documents in a database that are modified since a specified time.
GetModifiedDocumentsWithOptionsLets you retrieve all modified documents meeting matches for specified options.
GetNamedDocCollectionReturns a collection of named documents.
GetNamedDocumentReturns a named document.
GetOptionGets the value of a database option.
GetOutlineRetrieves an existing outline within the current database and returns a NotesOutline object that represents the outline.
GetProfileDocCollectionGiven a profile name, returns a collection of Profile documents that match the name, or if no name is given, a collection of all Profile documents.
GetProfileDocumentRetrieves or creates a Profile document.
GetURLHeaderInfoGets the specific Hypertext Transfer Protocol (HTTP) header information from the Uniform Resource Locator (URL). A URL is a text string used for…
GetViewFinds a view or folder in a database, given the name or alias of the view or folder.
GrantAccessModifies a database access control list to provide the specified level of access to a person, group, or server.
MarkForDeleteMarks a database for deletion from a server in a cluster.
Open (NotesDatabase)Opens a database. A database must be open in order to access all its properties and methods. For details on accessing the properties and methods of a…
OpenByReplicaIDGiven a server name and a replica ID, opens the specified database, if it exists.
OpenIfModifiedGiven a date, opens the specified database if it has been modified since that date.
OpenMailAssigns a database to the current user's mail database and opens that database.
OpenURLDbFinds and opens the default Web Navigator database.
OpenWithFailoverOpens a database on a server.
QueryAccessReturns the current access level of a person, group, or server to a database.
QueryAccessPrivilegesReturns the privileges of a person, group, or server in a database.
QueryAccessRolesReturns the roles of a person, group, or server in a database.
Remove (NotesDatabase)Permanently deletes a database from disk.
RemoveFTIndexRemoves a full-text index from a database.
ReplicateReplicates a database with its replica(s) on a given server.
RevokeAccessRemoves a person, group, or server from a database access control list. This resets the access level for that person, group, or server to the Default…
SearchGiven selection criteria for a document, returns all documents in a database that meet the criteria.
SetOptionSets the value of a database option.
Sign (NotesDatabase)Signs elements in a database with the signature of the current user. This method programmatically mimics the use of the Sign Database dialog in the…
TransactionBeginBegins recording changes to a database on a Domino server.
TransactionRollbackDiscards database changes recorded by TransactionBegin.
UnprocessedFTSearchConducts a full-text search of the documents in a database that the current agent considers to be unprocessed.
UnprocessedFTSearchRangeConducts a full-text search of the documents in a database that the current agent considers to be unprocessed.
UnprocessedSearchGiven selection criteria for a document, returns documents in a database that:
UpdateFTIndexUpdates the database full-text index.

Examples

NameDescription
Examples: AllDocuments property1. This script gets a collection of every document in the current database. For example, if there are 56 documents in the database, AllDocuments returns…
Examples: Compact method (NotesDatabase)1. This script compacts WHITESPC.NSF if less than 85% of its disk space is occupied by real data.
Examples: Created property (NotesDatabase)1. This script gets the date/time that the current database was created. For example, the Created property might return 10/15/95 4:43:51 PM.
Examples: CreateReplica method (NotesDatabase)This script creates a replica of the current database on the server Jakarta.
Examples: DesignTemplateName property1. This script gets the design template name of the database CBANNER.NSF. Since CBANNER.NSF is a mail file, the method returns "STDR4MAIL."
Examples: FileFormat propertyThis agent gets the ODS version of the databases in the local directory.
Examples: FileName propertyThis script gets the file name and title of the current database.
Examples: FilePath propertyThis button displays the title and path of the current database.
Examples: Forms propertyThis example displays the names of all the forms in the current database.
Examples: FTSearch method (NotesDatabase)1. This agent returns all the documents in the current database that contain a user-specified string.
Examples: FTSearchRange methodThis agent returns all the documents in the current database that contain a user-specified string, in groups of eight.
Examples: IsClusterReplication propertyThis agent toggles cluster replication for a database.
Examples: IsConfigurationDirectory propertyThis agent displays the Configuration Directory databases known to the current session.
Examples: IsCurrentAccessPublicReader propertyThis agent opens a database in the workspace if the user has public reader access to it.
Examples: IsCurrentAccessPublicWriter propertyThis agent opens a database in the workspace if the user has public writer access to it.
Examples: IsDesignLockingEnabled property1. This agent displays whether design locking is enabled for the current database.
Examples: IsDirectoryCatalog propertyThe following agent determines if databases are Directory Catalogs.
Examples: IsDocumentLockingEnabled property1. This agent displays whether document locking is enabled for the current database.
Examples: IsFTIndexed property1. This script checks if the current database has a full-text index before calling the FTSearch method.
Examples: IsInMultiDbIndexing propertyThis agent toggles the setting for including the current database in multi-database indexing.
Examples: IsInService propertyThis agent toggles whether a database is in service.
Examples: IsLink propertyThis agent gets the path names of all linked databases in the local directory.
Examples: IsMultiDbSearch propertyThis example displays the status of IsMultiDbSearch.
Examples: IsOpen propertyThis script attempts to open TODO.NSF on the server Bombay. If the database is found, it is opened, and IsOpen returns True. If the database is not found…
Examples: IsPendingDelete propertyThis agent exits the Sub if a database is pending deletion.
Examples: IsPrivateAddressBook propertyThis agent displays the Personal Address Book databases known to the current session.
Examples: IsPublicAddressBook propertyThis agent displays the Domino® Directory databases known to the current session.
Examples: LastFixup propertyThis agent displays the last fixup date for the local databases.
Examples: LastFTIndexed property1. This script gets the date that the current database was last full-text indexed. For example, the LastFTIndexed property might return 10/30/95 6:36:18…
Examples: LastModified property (NotesDatabase)1. This script gets the date that the current database was last modified. For example, the LastModified property might return 10/30/95 1:35:44 PM.
Examples: LimitRevisions propertyThis agent cycles the revision limit from 0 to 1000 in increments of 100.
Examples: LimitUpdatedBy propertyThis agent cycles the updated-by limit from 0 to 1000 in increments of 100.
Examples: ListInDbCatalog propertyThis agent toggles whether the current database is listed in a database catalog.
Examples: Managers property1. This script displays the name of every manager in the current database. For example, it might display "Helen Anda," "LocalDomainServers," and "Sales."
Examples: Parent property (NotesDatabase)This script gets the current Notes® session. It then displays the name of the platform on which the current session is running; for example, if the…
Examples: Remove method (NotesDatabase)This script deletes BYEBYE.NSF if it has not been modified in the last 100 days.
Examples: Sign method (NotesDatabase)This agent signs the forms in the current database.
Examples: Title property (NotesDatabase)1. This script displays the title of the current database.

Reference

NameDescription
GetAllReadDocumentsCreates a note collection of all read documents in the database.
GetAllUnreadDocumentsCreates a note collection of all unread documents in the database.
IsDirectoryCatalogRead-only. Indicates whether a database is a Directory Catalog database, also known as the Light Weight NAB, or the Enterprise Address Book.
SetUserIDForDecryptAfter calling this method on a database, any document that is opened within the database is decrypted using the encryption keys within the userID object,…