Entering A SQL Connection
Every SQL connection in the Portal is entered the same way. That covers:
- a database target system;
- the live source of a stored-procedure import;
- an ESRA data source on PostgreSQL, SQL Server, MySQL/MariaDB or Oracle;
- an AISI index on one of those engines;
- a SQL Server or PostgreSQL audit target.
You fill in the parts of the connection, and the Portal writes the connection string in the engine's own keywords.
The Fields
| Field | What to enter |
|---|---|
| Host | The server's name or address. On SQL Server, a named instance goes here too: sql.example.net\SALES. An IPv6 address goes in brackets on Oracle: [2001:db8::1]. |
| Port | Leave it empty for the engine's default, shown in the field: 1433, 5432, 3306 or 1521. |
| Database | The database to connect to. On Oracle this field is Service name: the service the listener knows the database by, such as SALESPDB. |
| Additional attributes | Any other option, as a name and a value: Encrypt = True, SSL Mode = Require, Application Name = tools. The name field suggests common ones for the engine. |
The line under the fields shows the connection string that is saved, for example:
| Engine | Host db, port 1433, database sales, attribute Encrypt=True |
|---|---|
| SQL Server | Server=db,1433;Database=sales;Encrypt=True |
| PostgreSQL | Host=db;Port=1433;Database=sales;Encrypt=True |
| MySQL / MariaDB | Server=db;Port=1433;Database=sales;Encrypt=True |
| Oracle | Data Source=db:1433/sales;Encrypt=True |
A value that contains a ; or starts with a quote is quoted for you.
Changing the engine rewrites the host, port and database in the new engine's keywords. The additional attributes are kept as you typed them, because each engine has its own set: check that they still apply.
Never A User Name Or Password
A connection holds no credentials. An attribute named Password, Pwd, User ID, UID, Username, User or
User Name is marked on its row, and the form refuses to save it. The login always comes from the screen's own
credential fields: the target system's authentication profile, the import's one-time login, or the secrets an ESRA
source, AISI index or audit target binds.
The other problems are marked where they are made:
- an attribute that repeats the host, port or database, such as
Initial Catalogon SQL Server (use the field above); - an attribute listed twice;
- an attribute with a value but no name;
- a port that is not a whole number from 1 to 65535;
- a port or service name typed into the host on SQL Server or Oracle.
Editing As Text
Switch on Edit as text to type or paste the connection string itself. Switch it off again and the text is read
back into the fields, through any of the engine's spellings: a pasted Data Source=…;Initial Catalog=… loads into
Host and Database.
Some connections cannot be shown as fields, and these open as text with the reason under it:
- an Oracle connect descriptor,
(DESCRIPTION=(ADDRESS=…)); - a string that names the host twice;
- text that is not a valid connection string, such as a quote that is never closed.
The switch stays on until the text is one the fields can show. Nothing is rewritten until you change it.
A MongoDB connection is a mongodb:// URI rather than a list of keywords, so ESRA and AISI MongoDB connections keep
their single text field.
What Is Checked After Saving
The fields change how a connection is typed, not what is stored. The server checks the saved connection string:
- it must hold no user name or password;
- it may be at most 2,000 characters;
- every host it names must be on the tenant's outbound allowlist before a connection is opened.