Switch to: V9V8V7V6V5

REGISTER DATABASE

Syntax

vext_vsrv_register_db                              -- v4.0
    : REGISTER DATABASE db_name [db_path]
 

Arguments

db_name

specifies the registration name of database. Later you will use this name to do such SQL commands as USE DATABASE db_name, db.Open(), …

[db_path]

specifies absolute path of a database to be registered. If path is missing then Valentina Server will search in the System Catalog for database file with name “db_name”.

NOTE: SystemCatalog of Valentina Server is specified in the its INI file. On default it is “Databases” folder located in the VServer folder.

Description

You need execute this command to put under working server some existed Valentina database files. Usually you can put database files into “Databases” folder of Valentina Server and register it.

Errors

  • FILE NOT FOUND – you can get this error if Valentina Server have not found database with the given name at specified location.

Examples

Example:

REGISTER DATABASE account_db;

Example:

REGISTER DATABASE account_db '/my_site/my_account_db.vdb';

See Also