Function EN Version 1.90

@CreateDB

Database NotesSystem

Syntax

@CreateDB(NOTESPATH1;DBCLASS2;OVERWRITE3);

Description

Creates a new completely empty database of DBCLASS DBCLASS2 under the NOTESPATH NOTESPATH1 and returns a DBHANDLE to it.

With FN OVERWRITE3 can be used to specify whether an existing database with the same name should be overwritten or not.

DBCLASS2:
"NSF"   Standard database
"NS2"   Standard database V2.1 Format
"NSG"   Giant database 200 MB (V2.1)   *
"NSH"   Huge database 300 MB (V2.1)   *
"NTF"   Template database
"NSX"   Test database
"DSK"   Desktop database
"NCF"   Notes Clipboard database

* NSF formats no longer supported as of Notes version 3.0.

OVERWRITE3:
0   Do not overwrite if already present
1   Overwrite if already present

Example: @CreateDB(NOTESPATH1;DBCLASS2;OVERWRITE3)

DBHANDLE1:=@CreateDB("TEST1.NSF";"NSF";0);
DBHANDLE1:=@CloseDB(DBHANDLE1);

A new standard database "TEST1.NSF" is created in the Notes data directory. If such a database already exists, the @function is aborted; otherwise, it is then closed.

Note : This text was machine-translated and may contain inaccuracies.