Skip to content

Create Database

Creates a database.

Permissions

Command KindNeeded User Kind
SystemSys, SysTech

Parameters

NameTypeDescriptionRequiredDefaultValues
DatabasestringName of the database ([Database]).yes
DirectorystringDirectory on the server where the files are saved.yes
AdminPasswordstringPassword for the 'Admin' user.no
CatalogbooleanIf 'True' the database is visible in the 'Show Database Catalog' command. The default value is 'False'.nofalse
CreateAdminbooleanIf 'True' the 'Admin' user is created. The default value is 'False'.nofalse
CreateDirectorybooleanIf 'True' and the directory does not exist, then the directory is created. The default value is 'False'.nofalse
OffsetMonthintegerIf the fiscal year does not start in january, its start month must be set (1=jan. till 12=dec.) The default value is '1' (jan.).no1

Result

NameTypeDescription
DatabasestringName of the database.
DirectorystringDatabase directory on the server.
LoadedstringDatetime when the database was loaded.
SavedstringLast date and time when the database was saved from memory to disk.
SaveEnabledbooleanIf 'True' the database can be saved. It is a temporary value that is not saved in the database settings.
CatalogbooleanIf 'True' the database is visible in the 'Show Database Catalog' command.
OffsetMonthintegerStart month of the fiscal year (1=jan. till 12=dec.).
WebDirectorystringProtects a web service directory with 'BasicAuth'. If a value is set, a valid username and password of the database must be used to access the web service directory. E.g. '/MyFiles/SecretFiles/' protects a directory and '/' protects the whole web service.
DimensionsintegerNumber of database dimensions.
TablesintegerNumber of database tables.
LinksintegerNumber of database links.
CalculationsintegerNumber of database calculations.
CommandsintegerNumber of database commands.
CommandGroupsintegerNumber of database command groups.
ScriptsintegerNumber of database scripts.
TextsintegerNumber of database texts.
UsersTotalintegerNumber of database users (active and inactive).
UsersActiveintegerNumber of active database users.
RolesintegerNumber of database roles.
VariablesintegerNumber of database variables.
ConnectionsintegerNumber of active database connections.

Code

text
CREATE DATABASE
DATABASE=[string, Needed]
DIRECTORY=[string, Needed]
ADMINPASSWORD=[string]
CATALOG=[boolean, default=false]
CREATEADMIN=[boolean, default=false]
CREATEDIRECTORY=[boolean, default=false]
OFFSETMONTH=[integer, default=1]