On this page
SHOW CONNECTION
Core command
SH CO
SHCO
Shows the details of a connection: name, type, URL, user, Database Group and Environment.
Syntax
SHOW CONNECTION [<connection>]
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
<connection> | No | A connection ID of the CDF | The current connection |
Examples
SHOW CONNECTION db01;
SHOW CONNECTION;
Example session
WORLD-QA> SHOW CONNECTION;
|----------------|-------------------------------|
| CONNECTION | WORLD-QA |
| NAME | Sample World Database, QA |
| TYPE | H2 |
| URL | jdbc:h2:./samples/WorldDB_QA |
| USER | sa |
| DATABASE GROUP | WORLDAPP |
| ENVIRONMENT | QA |
|----------------|-------------------------------|
Details
The command shows the connection's name, type, URL, user, Database Group and Environment in a two-column table (the field, then its value); the password is never shown. Without a connection ID, it shows the current connection. A warning is shown when the connection does not exist in the CDF, or is inactive.
The table fits its content. When the terminal is narrower than the table, which a long URL can cause, the value column continues on the following lines of the same row, so the separators stay aligned and no part of the URL is cut.
Related
Last modified in release development.
Found something wrong or unclear on this page? Tell us, with the page address.