HSQLDB Manager; Adding Fields To The Database - ROES Server

ROES Support Knowledgebase

HSQLDB Manager: Adding Fields to the Database - ROES Server

Use this article when support or lab staff need to connect to the ROES Server HSQLDB database and run approved SQL to add a field.

Product: ROES Server Category: Database / HSQLDB Audience: Lab / Support Article ID: 99
Common need
A lab needs to add an approved database field to the ROES Server database using HSQLDB Manager.

Overview

ROES Server includes access to an HSQLDB database that can be opened with HSQLDB Manager. The manager can inspect tables and execute SQL statements, including approved ALTER TABLE statements that add fields to existing database tables. Because this changes the live database structure, only run SQL that has been reviewed and approved for the specific lab/database.

When to Use This

  • Support has provided SQL to add a field to the ROES Server database.
  • A production workflow, report, integration, or agent requires a new database column.
  • The database connection URL must be collected from the primary ROES Server.
  • The lab needs a safe checklist for connecting to HSQLDB Manager before running SQL.

Before You Begin

  • Confirm you are working on the primary ROES Server, meaning the server that hosts the database.
  • Create or confirm a current backup of the ROES Server configuration/database before making database changes.
  • Confirm the exact table name, field name, field type, and SQL statement to run.
  • Avoid running SQL against the database during heavy order-processing activity when possible.
  • Do not guess SQL field types or table names. If the statement is not known, escalate before proceeding.

Important Database Safety Note

HSQLDB Manager can directly modify the ROES Server database. Run only approved SQL, and keep a backup before making changes. A mistyped table name, field name, or data type can cause production issues.

Solution

1

Launch the primary ROES Server

Open the ROES Server that hosts the database. This is the primary ROES Server, not a secondary workstation unless that workstation is the database host.

2

Open the configuration gear

Click the configuration gear in the upper-right corner of ROES Server.

ROES Server configuration gear location
ROES Server: click the configuration gear in the upper-right corner.
If this image does not display, open it directly: ROESServer_Config_Gear.png
3

Record the database URL

Record the value shown in the URL: field. It should be similar to an HSQLDB JDBC URL.

jdbc:hsqldb:hsql://[server-name-or-address]/[database-name]
ROES Server URL connection string location
Copy or record the database connection string from the ROES Server URL field.
If this image does not display, open it directly: ROESServer_URL_ConnectionString_Comments.png
4

Open HSQLDB Manager

Open the HSQLDB Manager utility used with ROES Server. If launching from file, use the HSQLDB manager file shown in the ROES Server/HSQLDB location for that installation.

HSQLDB manager file location
HSQLDB Manager file reference used to open the database manager.
If this image does not display, open it directly: hsqldb_file_Comments.png
5

Review the first-launch connection window

When HSQLDB Manager opens, review the connection dialog. This is where the driver/type, URL, user, and password are entered.

HSQLDB Manager first launch connection window
HSQLDB Manager first launch/connection dialog.
If this image does not display, open it directly: hsqldbManager_FirstLaunch.png

Connection values

  • Type / Driver: HSQL Database Engine Server, or the HSQLDB driver option shown in the manager.
  • URL: Paste the URL recorded from the ROES Server configuration gear.
  • User: Use the configured database user. If the lab uses the default HSQLDB user, this may be SA.
  • Password: Use the configured database password. If the database uses the default empty password, leave the password blank.
HSQLDB Manager URL field comments
Paste the ROES Server database URL into the HSQLDB Manager URL field.
If this image does not display, open it directly: hsqldbManager_URL_Comments.png
6

Connect to the database

Click OK or the equivalent connect button. Confirm that the database opens and that the table list or command/query area is visible before running any SQL.

7

Paste the approved ALTER TABLE statement

Paste only the approved SQL statement into the SQL command area. A typical add-field statement follows this pattern:

ALTER TABLE [TABLE_NAME] ADD COLUMN [FIELD_NAME] [FIELD_TYPE];
HSQLDB Manager SQL query area
Paste the approved SQL statement into the query/command area.
If this image does not display, open it directly: hsqldbManager_Query_Comments.png
8

Execute the SQL

Run the SQL statement. Review the result area for success or errors before closing the manager.

9

Verify the field was added

Refresh or inspect the target table to confirm the new field exists. Then confirm that the related ROES Server workflow, report, or integration behaves as expected.

HSQLDB Manager query result set area
Use the result set/output area to confirm whether the query completed and to review table results.
If this image does not display, open it directly: hsqldbManager_Query_ResultSet_Comments.png

Expected Result

HSQLDB Manager should connect to the active ROES Server database, execute the approved SQL successfully, and show the new field in the target table.

Troubleshooting

  • Cannot connect: confirm the URL came from the primary ROES Server and that the database host is reachable.
  • Login fails: confirm the database user and password for this lab.
  • SQL error: confirm the table name, column name, and field type exactly match the approved statement.
  • Field does not appear: refresh the table view, reconnect, or verify against the correct database.

Escalation Notes

  • Record the database URL from the ROES Server configuration gear.
  • Record the exact SQL statement that was run.
  • Capture any error shown in HSQLDB Manager.
  • Confirm whether the database was backed up before the change.
  • Confirm the related workflow, report, or integration that required the new field.
Suggested keywords: ROES Server, HSQLDB Manager, database manager, add field, adding fields, ALTER TABLE, JDBC URL, database URL, HSQLDB, SQL, primary ROES Server

Article Details

Article ID:
99
Category:
Views:
1,301