The AnyCAGateway DCOM Database Management Console (DatabaseManagementConsole.exe) is a text-based, command line application for managing all database tasks related to the AnyCAGateway DCOM database, along with other database maintenance activities.
The  Database Management Console (DatabaseManagementConsole.exe) can receive parameter A parameter or argument is a value that is passed into a function in an application. input in three possible ways:
 A parameter or argument is a value that is passed into a function in an application. input in three possible ways:
 Command-Line Flags
Command-Line Flags
                                                            To provide parameters via the command-line, provide the function first (e.g., create) and then the parameters to the function. For example:
 JSON Configuration File
JSON Configuration File
                                                            The default JSON configuration file is called dbConfig.json and is located in the install directory. To specify a different JSON file path or file name, use the --config command-line flag. If you're using the default JSON configuration file, you only need to provide the function when running the Database Management Console command. For example:
The default JSON configuration file contains commented-out examples of all the possible parameters. Data in the file is given in the following format:
The example file also contains comments indicating which function a parameter can be used with, whether it is required, and what it does. For example:
"database":"CAGateway", // Create/Populate/Upgrade: REQUIRED, The name of the database to be created/populated/upgraded.
"username":"john_smith", // Create/Populate/Upgrade: OPTIONAL, The username of the SQL account to use for creating/populating/upgrading the database, if not using integrated authentication.
"password":"MySecurePassword", // Create/Populate/Upgrade: OPTIONAL, The password of the SQL account to use for creating/populating/upgrading the database, if not using integrated authentication.
 Environment Variables
Environment Variables
                                                            To provide arguments via environment variables, the variables should be given the same names as the fields in the sample json file (see Table 1085: Database Management Console Parameters, except the variable names should have a prefix of KeyfactorGateway- (e.g., KeyfactorGateway-server).
If you're using environment variables to set the parameters, you only need to provide the function when running the Database Management Console command. For example:
                                                                         
                                                                    
Figure 628: DatabaseManagementConsole Parameters Provided as Environment Variables
The function operation (create, populate, upgrade, or migrate) must be provided as a command line argument A parameter or argument is a value that is passed into a function in an application.. The parameters to the function can come for any or all of these sources. If the same parameter exists in more than one source (command line, JSON file, or environment variable), the order of priority is command line > JSON file > environment variables, meaning the parameters provided at the command line take precedence over those of the same names provided in the JSON file, which takes precedence over those of the same names set in the environment variables. When the command is run, the parameters from all three sources are combined and the rules of precedence are used to remove duplicates. Anything remaining, from whatever source, is used for the command, so if you specify a command-line value for one parameter but happen to have an environment variable set for another parameter, both parameters will be used in the command.
 A parameter or argument is a value that is passed into a function in an application.. The parameters to the function can come for any or all of these sources. If the same parameter exists in more than one source (command line, JSON file, or environment variable), the order of priority is command line > JSON file > environment variables, meaning the parameters provided at the command line take precedence over those of the same names provided in the JSON file, which takes precedence over those of the same names set in the environment variables. When the command is run, the parameters from all three sources are combined and the rules of precedence are used to remove duplicates. Anything remaining, from whatever source, is used for the command, so if you specify a command-line value for one parameter but happen to have an environment variable set for another parameter, both parameters will be used in the command.
Database Management Console Functions and Parameters
Major functions of the Database Management Console are shown in Table 1084: .Database Management Console Functions. Parameters to the functions are shown in Table 1085: Database Management Console Parameters.
Table 1084: .Database Management Console Functions
| Function | Purpose | Link | 
|---|---|---|
| Create | Create a new database. | Create the Database | 
| Populate | Populate an existing, empty database. | |
| Upgrade | Upgrade an existing database from a previous version of the AnyCAGateway DCOM. | Upgrading from AnyCAGateway DCOM Version 20.x or Later | 
| Migrate | Migrate an exiting ESENT database to a new, empty AnyCAGateway DCOM SQL database. | |
| Help, --help | Display information on a specific command. | |
| Version, --version | Display version information. | 
Table 1085: Database Management Console Parameters
Was this page helpful? Provide Feedback