User manual

EQLServer: set up, connect and use.

This manual explains what EQLServer can do, how to install and start it, how your applications and tools connect to it and how to use the new features. Every section has examples you can copy.

Windows x64no installerno admin rightseleven SQL dialectsone set of data

What EQLServer can do

EQLServer is a database server for Windows that understands the language of eleven database systems, for most of them also their network protocol. Your applications connect with their usual driver, send their usual SQL and work on the same tables. There is nothing to synchronize: what a SQL Server application stores, a PostgreSQL or MySQL application sees immediately.

The eleven dialects

Each dialect has its own port. The values apply to a new installation; if a port is in use at the first start, EQLServer automatically picks the next free one (see Ports).

DialectPortTypical clients and tools
T-SQL (Microsoft SQL Server)1433SSMS, sqlcmd, bcp, ADO.NET SqlClient, ODBC, FireDAC (MSSQL)
PostgreSQL5432psql, pgAdmin, DBeaver, Npgsql, JDBC, FireDAC (PG)
MySQL / MariaDB3306mysql, MySQL Workbench, HeidiSQL, PHP mysqli/PDO (e.g. WordPress)
Oracle mode5432any PostgreSQL client; Oracle SQL and PL/SQL are translated
SQLiteDLLreplacement sqlite3.dll next to the application
Firebird / InterBase3050fbclient, IBExpert, FlameRobin, isql, FireDAC, IBX, Jaybird
SQL Anywhere2638EQLServer ODBC driver under the names "SQL Anywhere 5–17", PowerBuilder, dbisql
Informix New9088Informix.Net.Core, IBM.Data.Informix, ODBC "IBM INFORMIX ODBC DRIVER" through the EQLServer driver iclit09b.dll
SAP/Sybase ASE New5000 (off)TDS 5.0 clients: FreeTDS, jTDS, AdoNetCore.AseClient, sqsh; Open Client and jConnect not verified
Microsoft Access New1433, 5432Access with linked tables, programs through the EQLServer Access driver (ODBC, OLE DB), Access SQL; see Access
Advantage (ADS)6262EQLServer ACE library: Clipper/Harbour, Xbase++, X#, Delphi TAdsTable

Features at a glance

OPERATIONXCopy installation

Unzip the folder, start. No installer, no registry, optionally as a Windows service.

DATAMultiple databases

Any number of databases per installation, cross-database queries as in SQL Server.

IMPORTMigrate data

Import SQL Server, SQL Anywhere, Informix, Advantage (DBF/ADT), Firebird and Microsoft Access (.mdb/.accdb) with a single command.

REMOTE ACCESSTunnel over port 443

Database connections through firewalls and proxies, without a VPN.

OPERATIONBackup & monitoring

eqlbackup, browser monitor, Prometheus, e-mail alerts.

SCALINGPool, compute nodes, failover

Many clients on few connections, standby server with automatic takeover.

CONVERTEQLMaker

A product of its own: converts legacy applications (recording, PowerBuilder analysis, web rebuild). start.cmd /eqlmaker sets it up.

Sections marked New describe features of the current development state. They ship with the next package after version 1.5.0.

What is in the package

File / folderContents
start.cmd, eqlserver.cmdStart, stop, status, set up the service
eqlbackup.cmdBack up, verify, restore, scheduled backups
eqlserver-replay.ps1POC replay: classify statements (RUN/FIXED/IGNORED/OPEN); reads the recordings of EQLMaker New
pgsql\Database engine (PostgreSQL 19 with Babelfish and the EQLServer dialects)
sqlanywhere\, ads\, sqlite\Client drivers for SQL Anywhere, Advantage and SQLite applications
tunnel\, webserver\HTTPS tunnel (gateway, client DLL and program) and built-in web server
Delphi\Delphi units for error reports and the tunnel
docs\This manual and the technical references (English)

The first start creates data\ (the database), eqlserver.config.json (settings and credentials) and logs\.

Installation and start

Requirements

  • Windows 10/11 or Windows Server 2019/2022/2025, 64-bit (x64); Windows 11 on ARM with the ARM64 package. Nothing to install first (.NET Framework 4.7.2 of Windows is enough)
  • a normal user account; administrator rights only for firewall rules and the Windows service
  • write access to the target folder: C:\EQLServer, D:\apps\eqlserver, a network drive or a USB stick

The complete runtime environment is in the ZIP. No .NET setup, no VC++ runtime and no reboot are needed.

Windows on ARM64 New

For Windows 11 on ARM processors (Snapdragon X, Azure Cobalt, Ampere) there is the package eqlserver-arm64.zip; its GIS module is eqlserver-gis-arm64.zip. The server, all dialects, PL/Python and the SQLite DLL are native ARM64 programs; unpack and start as with the x64 package.

  • Tested on 2026-11-22 on real ARM64 hardware: an Azure VM with an Ampere Altra processor and Windows 11 Pro ARM64. The package test of version 1.8.0 with GIS passed completely; T-SQL, PostgreSQL 19, MySQL, Firebird, SQL Anywhere, ADS, GIS, TLS, backup and tunnel work. SELECT @@VERSION shows EQLServer 1.8.0 … (ARM64).
  • Client libraries: the tunnel client is in tunnel\client\arm64 (native), x64 and x86; the x64 and x86 versions run on ARM64 in the Windows emulation. The SQLite DLL exists for ARM64 (sqlite\) and for 32-bit applications (sqlite\x86).
  • Known bug in 1.7.0 and 1.8.0 (ARM64): the folder sqlite\ contains the x64 versions of libpq.dll, libssl-3-x64.dll and libcrypto-3-x64.dll; the ARM64 SQLite DLL then reports "libpq.dll not found (Windows error 193)". Workaround until the next package: delete these three files and copy libpq.dll, libssl-3-arm64.dll and libcrypto-3-arm64.dll from pgsql\bin to sqlite\.

Unzip and first start

  1. UnzipUnzip the ZIP into any folder.
    C:\> tar -xf eqlserver.zip -C C:\EQLServer
    C:\> cd C:\EQLServer
  2. StartDouble-click start.cmd or run it from a command prompt:
    C:\EQLServer> start.cmd
    The first start takes about 10 seconds: the package contains a ready-made data directory that is copied and given new random passwords. The window first shows the EQLServer logo with the version number, below it three lines that say what EQLServer is and a notice about EQLMaker (switched off with "StartNotice": false in the configuration file; the lines never appear in the Windows service, with -Status or with eqlserverctl), after the start the data folder with the databases in it and the ports of all dialects.
  3. ConnectConnect with the tool of your choice, for example SSMS with localhost,1433 and the login sa; the password is in eqlserver.config.json (AdminPassword, see Connecting). localhost and 127.0.0.1 work alike.

Your own user right at startup: eqlserver.cmd 1433 5432 eqlserver appuser "Geheim!123" starts with T-SQL port, PostgreSQL port, database name, user and password. The user has full rights in all protocols and is created or updated at every start. The values are saved in eqlserver.config.json.

The window of start.cmd must stay open. Ctrl+C or closing the window shuts the server down cleanly. Without an open window the server runs with eqlserverctl start; for continuous operation, set up the Windows service.

Installed under "Program Files": on the first start the start script gives the Windows user write access to the EQLServer folder, because the database server runs without administrator rights. If that is not possible, run start.cmd once with "Run as administrator". The start script itself removes the "Open File - Security Warning" for programs from a downloaded ZIP.

Start, restart and stop from the command line

eqlserverctl.cmd controls the server without a window that has to stay open:

C:\EQLServer> eqlserverctl start
C:\EQLServer> eqlserverctl status
C:\EQLServer> eqlserverctl restart
C:\EQLServer> eqlserverctl stop
CommandEffect
eqlserverctl startStarts the server in the background and waits until it accepts connections, then shows the ports. Nothing happens if it is already running.
eqlserverctl stopStops the server cleanly
eqlserverctl restartStop and start again
eqlserverctl statusRunning / stopped, data folder, ports
eqlserverctl start -DataDir D:\EQLDataStart with this data folder

If the folder is set up as a Windows service, eqlserverctl starts and stops the service. The output of the background server is in logs\eqlserver-console.log. Exit code 0 means done, 1 failed, so the tool can be used in your own scripts.

Data folder (where the databases are stored)

All databases are stored physically in one folder, by default data\ in the EQLServer folder. You give another folder at the start; it is saved in eqlserver.config.json (DataDir):

C:\EQLServer> eqlserver.cmd -DataDir D:\EQLData

After the start the window shows the data folder and the databases in it, for example 2 T-SQL databases: eqlserver, customers; 1 PostgreSQL database: eqlserver. In the T-SQL mode with several databases all T-SQL databases are stored in one PostgreSQL database.

Moving existing databases: stop the server (eqlserverctl stop), move the folder data\ to the new place, then start with -DataDir <new place>. As long as the databases are still in the old place, EQLServer refuses an empty new folder, so no empty databases are created by mistake.

Start commands

CommandEffect
eqlserver.cmdStart with the values from eqlserver.config.json
eqlserver.cmd <TSQLPort> <PGPort> <Database> <User> <Password>Start with these values (they are saved)
eqlserver.cmd -StatusShows whether the server is running
eqlserver.cmd -StopStops the server
eqlserver.cmd -DataDir <folder>Start with this data folder (it is saved)
eqlserver.cmd -TestShort self-test against the running server (creates its own test table, writes, reads, deletes; the table is removed afterwards)
eqlserver.cmd -InstallServiceSet up and start as a Windows service (admin rights)
eqlserver.cmd -UninstallServiceStop and remove the service
eqlserver.cmd -UpdateFrom <old folder>Take over the data and settings of an older version
eqlserver.cmd -UninstallRemove firewall rules, tunnel binding, backup task and service
start.cmd /eqlmakerNew Set up EQLMaker (the conversion tool, a product of its own) in its own folder, or update it with /eqlmaker update

Before anything happens, the start script checks whether all ports are free. If one is in use, it names the program that occupies it and waits.

Set up EQLMaker New

EQLMaker is a product of its own and free software (license AGPL-3.0-or-later, source code: https://github.com/robertbinsack/eqlmaker, site: eqlmaker.org). It holds the tools that convert legacy applications (Converting applications with EQLMaker); none of them is in the EQLServer package. EQLServer fetches it only on request, and only the current version.

C:\EQLServer> start.cmd /eqlmaker
C:\EQLServer> start.cmd /eqlmaker update

The command (the same: eqlserver.cmd /eqlmaker and -eqlmaker) does not start the server.

  • Already set up: when the folder eqlmaker beside the EQLServer folder holds a complete EQLMaker (of any version), nothing is downloaded; the message names the version, how to start it and how to update it. start.cmd /eqlmaker update fetches the newest release and copies it over (your projects stay; the database server of EQLMaker is stopped first with its own eqlmaker-db-stop.cmd).
  • Not set up yet: the command asks GitHub for the newest release (robertbinsack/eqlmaker), checks the SHA-256 of the downloaded file against the value given by the release (and against its checksum file, when it has one), unpacks into the folder eqlmaker and runs the setup of EQLMaker there without questions. If a checksum does not match, the file is deleted and nothing is unpacked. Downloads come only from github.com/robertbinsack/eqlmaker and GitHub's file server.
  • Pinning a version: EqlMakerVersion together with EqlMakerSha256 in the configuration file (or the variables EQLMAKER_VERSION, EQLMAKER_SHA256) take precedence; GitHub is not asked then. The version named in the package (eqlmaker.json, 0.1.0) is used only when GitHub cannot be reached (rate limit) but the download server can.
  • This server as the data source: after the setup the command creates the EQLMaker project eqlmaker\projects\eqlserver: source eqlserver, host, PostgreSQL port, database and user of this installation, server log and statistics port. A password is never written; EQLMaker reads it from the variable EQLMAKER_PGPASSWORD or a password file (passfile, pgpass format); the password is SuperPassword in the configuration file. An existing project file is not changed. If EQLServer was never started there is no configuration yet: start it once and repeat the command.
  • Only on request: without the switch EQLServer downloads nothing. No administrator rights, nothing outside the folder: no PATH, no registry, no service, no firewall rule.
  • Proxy: EqlMakerProxy in the configuration file or the variable HTTPS_PROXY; otherwise the proxy of Windows. Without internet: copy the package by hand into eqlmaker\_eqlserver and repeat the command.
  • Uninstall: stop the database server of EQLMaker first (eqlmaker-db-stop.cmd in the EQLMaker folder), then delete the folder eqlmaker.

Running as a Windows service

As a service, EQLServer starts with Windows without anyone being logged on, and is restarted after a failure. In a command prompt with administrator rights:

C:\EQLServer> eqlserver.cmd -InstallService

The service is named EQLServer_<folder name>, so for C:\EQLServer it is EQLServer_EQLServer. Messages also appear in the Windows Event Viewer (Application, source EQLServer); the service log is logs\service.log.

The configuration file

eqlserver.config.json in the EQLServer folder contains all settings. Changes take effect at the next start. The most important keys:

KeyMeaning
TdsPort, PgPort, MySqlPort, FirebirdPort, SqlAnywherePort, AdsPortPorts of the dialects
DatabaseNameApplication database, default eqlserver (can only be changed before the first start)
MaintUser / MaintPasswordApplication login for all protocols (default eqladmin, random password)
AdminUser, SuperUserAdministrative logins with random passwords: T-SQL administrator (new installations from 1.6.0: sa, before babelfish_admin) and PostgreSQL superuser
DataDirData folder; empty = data\ in the EQLServer folder
ServerNameNew name returned by @@SERVERNAME and SERVERPROPERTY('ServerName') (computer or computer\instance); empty = the Windows computer name, as for a default SQL Server instance
KeepRuntimeForUpgradetrue = copy of the current PostgreSQL runtime in pgsql-<major>, so that a later package with a new major version can upgrade the data automatically on a copy-over update (pg_upgrade)
AdminPgSuperusertrue = the administrator login (AdminUser, default sa) is also a PostgreSQL superuser: create databases and extensions and work in every database with any PostgreSQL program. Set on every start; false leaves the role unchanged. The extension vector (pgvector) is ready in every database, also in databases an application creates itself.
ListenAddresses* (default for new installations) = every computer may log in with user and password. Who may connect is controlled with the Windows firewall only; pg_hba.conf does not need to be changed. The start script allows postgres.exe, eqlserver-pool.exe and the ports, so Windows does not ask at the start (start once with administrator rights for that). localhost = this computer only (through localhost, 127.0.0.1, the computer name or its own IP address): the start script then creates firewall rules that block other computers for postgres.exe and the pool. The start window and eqlserverctl status show the mode ("Access: other computers allowed" with the IP addresses to connect to, or a yellow "ONLY THIS COMPUTER"). Configurations of versions before 1.7.0 with localhost (the default then) are switched to * on the first start; set localhost again if only this computer should connect. With localhost (only this computer) and a firewall block rule for postgres.exe that cannot be verified (no administrator rights, firewall off or unreadable), the server listens on 127.0.0.1 and ::1 only; the name localhost of the Microsoft drivers may then fail: connect to 127.0.0.1 or start once as administrator.
PoolEnabledConnection pool for T-SQL (default: on)
StartNoticeNew false = the start window shows only the logo and the version, not the three lines about EQLServer and the notice about EQLMaker (default: on)
EqlMakerFolder, EqlMakerProxy, EqlMakerVersion + EqlMakerSha256New only for start.cmd /eqlmaker: target folder (default: eqlmaker beside the EQLServer folder), proxy (http://proxy:port) and a pinned version with its checksum (without them the newest release is fetched)
AseEnabled, AsePortNew TDS 5.0 port for SAP/Sybase ASE applications (default: off, port 5000)
TunnelEnabled, WebServerEnabledHTTPS tunnel and built-in web server
OracleRoles, SqlAnywhereRolesLogins whose sessions start automatically in Oracle or SQL Anywhere mode

The file contains passwords. Do not pass it on, and protect the folder with file permissions.

Ports of a new installation

The first start uses the default port for each protocol: T-SQL 1433, PostgreSQL 5432, MySQL 3306, Firebird 3050, error reports 1450 (plus SQL Anywhere 2638, Informix 9088 and Advantage 6262; SAP ASE 5000, only when switched on). Before the installation is created, the start script checks each of these ports and the port of the connection pool (T-SQL port + 1). If one is in use, for example 1433 by an existing SQL Server, or blocked by Windows (port ranges reserved by Hyper-V), it counts up in steps of eleven (1433 → 1444 → 1455 …) until a free port is found. The chosen ports are then fixed in eqlserver.config.json and shown in the start window.

New ports.txt: At every start EQLServer rewrites ports.txt next to start.cmd, one line per database server technology, for example MSSQL:1444, MSSQL_POOL:1445, POSTGRESQL:5432, ORACLE:5432, MYSQL:3317, FIREBIRD:3050, SQLANYWHERE:2638, ADVANTAGE:6262. A port is only listed when the server really accepts connections on it; if a server is switched off, could not open its port or the start failed, the line says -1. Setup programs can read the ports of an installation without parsing the configuration.

If a real SQL Anywhere, Firebird or Advantage server is still running on the computer, EQLServer starts without the affected listener and reports this in the log. In that case, set a free port in the configuration file.

Updating to a new version

The recommended way is to update into a new folder. The old folder stays unchanged as a way back.

C:\> tar -xf eqlserver-neu.zip -C C:\EQLServer-neu
C:\> C:\EQLServer-neu\eqlserver.cmd -UpdateFrom C:\EQLServer

The new version stops the old server, copies its data and takes over configuration, ports, passwords, license file, tunnel keys and error reports. Both folders use the same ports; only ever start one of them.

New PostgreSQL major version

Updating by copying the new package over the old folder also works: stop the server, copy, start. data\ and the configuration are not part of the package and stay.

New When a package brings a newer PostgreSQL major version than the data, the first start upgrades the data automatically with pg_upgrade. The previous data folder stays unchanged as data-pg<old>-<time> (the way back with the old version) and can be deleted once the new version runs. For this, EQLServer 1.7.0 and later keeps a copy of its runtime in pgsql-<major> on every start (KeepRuntimeForUpgrade, about 210 MB); with an update into a new folder the old folder serves for it. Free space for a second copy of the data is needed. If the upgrade fails, the data stays unchanged (logs\pg_upgrade.log).

New Update to 1.8.0 (PostgreSQL 19): EQLServer 1.8.0 is based on PostgreSQL 19, all earlier versions (Crossgres 1.0.0 to EQLServer 1.7.0) on PostgreSQL 18. An update from any of them – copied over the old folder or with -UpdateFrom – runs the upgrade 18 → 19 automatically on the first start (about a minute for small installations). For this the package brings the PostgreSQL 18 runtime of 1.7.0 in upgrade\pgsql-18, the GIS module the PostGIS of 1.7.0; the start removes both folders once the data is on PostgreSQL 19. The ports of the installation stay closed during the upgrade. Afterwards pgvector, orafce, pg_hint_plan and PostGIS are brought to their new versions in every database. With PostGIS data (geometry/geography), unzip the GIS module 1.8.0 before the first start as well.

Uninstalling

eqlserver.cmd -Uninstall (as administrator) removes everything the installation registered in Windows: service, the firewall rules the installation created itself (recorded in firewall-rules.txt; rules of other EQLServer installations or made by hand stay; an installation older than 1.11.0 without a record removes a rule only for an enabled feature when nothing listens on its port and no other installation uses it, and names every rule it leaves), tunnel binding and self-signed certificates, the backup tasks (also those for single databases), ODBC drivers and data sources and COM registrations that point into the folder. Then delete the folder. Nothing is left behind in the registry or in system folders (checked with a before/after comparison in clean VMs).

Connecting

All examples use the default ports. Take the ports from your eqlserver.config.json if different ones were chosen at the first start.

Users and passwords

One login is valid for all protocols. The user given at startup (or MaintUser from the configuration file) is sysadmin in T-SQL and superuser in PostgreSQL. You create further logins as in SQL Server:

CREATE LOGIN buchhaltung WITH PASSWORD = 'Geheim!123', DEFAULT_DATABASE = eqlserver;
USE eqlserver;
CREATE USER buchhaltung FOR LOGIN buchhaltung;
ALTER ROLE db_datareader ADD MEMBER buchhaltung;
ALTER ROLE db_datawriter ADD MEMBER buchhaltung;

In PostgreSQL clients, login names are lowercase (buchhaltung). Passwords must not contain spaces if you pass them at startup.

SQL Server Management Studio and T-SQL applications

ClientSetting
SSMSServer localhost,1433, SQL Server authentication, encryption Optional or Mandatory with "Trust server certificate"
sqlcmdsqlcmd -S 127.0.0.1,1433 -U appuser -P "Geheim!123" -No
ADO.NETServer=localhost,1433;Database=eqlserver;User ID=appuser;Password=…;TrustServerCertificate=True
Delphi FireDACDriverID=MSSQL;Server=localhost;Port=1433;Database=eqlserver;OSAuthent=No

Existing SQL Server applications only need a different server name in the connection string. Driver and SQL stay unchanged.

New Like SQL Server: Go programs with the go-mssqldb driver connect without errors (NO_BROWSETABLE is off by default as in SQL Server; drivers that need the column information switch it on themselves with SET NO_BROWSETABLE ON). Conversion errors report SQL Server's numbers: 245 for integers, 8114 for numeric, decimal, float and real, 8169 for uniqueidentifier; TRY/CATCH and ERROR_NUMBER() see the same numbers. Computed columns with DATENAME (MonthName AS DATENAME(month, OrderDate)) can be created. Spatial queries of the form geometry::STGeomFromText(...).STContains(t.geom) = 1 use the spatial index (GIS module).

New Tools read the catalog as with SQL Server: sys.types, sys.columns, sys.parameters and the other catalog views return SQL Server's type ids (int = 56, nvarchar = 231, sysname = 231/256) with system_type_id as a tinyint; TYPE_ID and TYPE_NAME match. LINQPad (LINQ to SQL) and other tools that read the column as a byte load the schema without errors. Existing installations are converted on the first start after copying the new package over them; your own views on these catalog views are kept. @@SERVERNAME and SERVERPROPERTY('ServerName') return the computer name (or ServerName from the configuration file), SERVERPROPERTY('MachineName') the computer, SERVERPROPERTY('InstanceName') is NULL for the default instance.

PostgreSQL

C:\EQLServer> pgsql\bin\psql -h 127.0.0.1 -p 5432 -U appuser -d eqlserver

pgAdmin, DBeaver and DataGrip connect with host, port 5432, database eqlserver and the login in lowercase.

MySQL and MariaDB

mysql -h 127.0.0.1 -P 3306 -u appuser -p
CREATE DATABASE wordpress;   -- becomes part of the same EQLServer database
USE wordpress;

PHP applications with mysqli or PDO (for example WordPress with WooCommerce) run unchanged. Not supported are user variables of the form @v :=, WITH ROLLUP and authentication with mysql_native_password.

New Tested with MariaDB Connector/J and MariaDB Connector/ODBC 3.2 (DSN-less: Driver={MariaDB ODBC 3.2 Driver};Server=…;Port=3306;CHARSET=utf8mb4), also with TLS (FORCETLS=1). SHOW STATUS LIKE 'Ssl_cipher' shows the encryption of the connection, as MySQL tools display it.

Graphical tools: MySQL Workbench, HeidiSQL and phpMyAdmin connect as to MySQL 8 (server = the EQLServer machine, port = MySqlPort, login = an EQLServer login). The database list shows only the databases of the applications, no internal schemas of EQLServer.

New phpMyAdmin (tested with 5.2.3 on PHP 8.4, mysqli): in config.inc.php this is enough

$cfg['Servers'][1]['host'] = '127.0.0.1';   // the EQLServer machine
$cfg['Servers'][1]['port'] = '3306';        // MySqlPort from eqlserver.config.json
$cfg['Servers'][1]['auth_type'] = 'cookie'; // log in with an EQLServer login

Creating and dropping databases, table structure, browsing data, inserting, editing and deleting rows (in the grid and in the form), the SQL tab, export (SQL, CSV), importing an SQL file, creating and dropping tables, user accounts (the EQLServer logins), status and variables work. The user accounts are read-only: create logins with CREATE USER / GRANT or in the configuration, not with the "Add user account" dialog. The status shows connections and queries from the PostgreSQL statistics; network traffic (bytes sent/received) is not counted by EQLServer and shows 0.

New Installers of PHP applications (tested with the open-source invoicing application InvoicePlane): GRANT ALL PRIVILEGES ON app.* TO 'user'@'%' gives the login full rights in that database, GRANT SELECT / REVOKE on databases and tables work as in MySQL. Statements that only contain comments, unnamed indexes (MySQL names them after the first column: code, code_2), ADD COLUMN ... NOT NULL on tables with rows (implicit default), select aliases in HAVING and '' into date columns with an empty sql_mode (stored as zero date 0000-00-00) behave as in MySQL.

Firebird

Firebird clients connect to localhost:3050 and a database name. Path and file extension are ignored: localhost:C:\daten\app.fdb opens the database app.

jdbc:firebird://localhost:3050/app

A login whose password was set before the Firebird listener was active needs its password set once more (ALTER LOGIN … WITH PASSWORD). User names are case-insensitive: SYSDBA is the login sysdba.

New Events: POST_EVENT in procedures and triggers reaches Firebird clients as with Firebird (Jaybird FBEventManager, fbclient isc_que_events): per committed transaction the number of calls, nothing after a rollback. The client opens a second connection to a port chosen by Windows; a firewall between client and server must allow it. PostgreSQL clients can listen with LISTEN name. Re-import triggers imported before 1.7.1 with fbimport so that several events of one transaction count separately.

New System tables: All RDB$, MON$ and SEC$ tables of Firebird 5 exist with their columns (dependencies, roles, time zones, users, attachments and transactions); administration tools such as FlameRobin load the object tree and the property pages without errors, and procedures, triggers and views show their Firebird source.

New .NET and InterBase: The Firebird ADO.NET provider (FirebirdSql.Data.FirebirdClient, .NET and .NET Framework) and programs for the InterBase client library gds32.dll (the Firebird client under that name, also 32-bit and Firebird 2.5) give the same results as Firebird 5, including error codes and savepoints.

SQL Anywhere applications

On the application's computer, the EQLServer ODBC driver is registered under the driver names the application expects. Copy the sqlanywhere folder from the package there and run as administrator:

.\sqlanywhere\install-odbc.ps1 -ServerHost 192.168.1.10 -Port 2638 -Database app

After that, the existing DSNs and connection strings connect to EQLServer, for example:

UID=dba;PWD=sql;DBN=app;HOST=192.168.1.10;PORT=2638
UID=dba;PWD=sql;DBN=app;LINKS=tcpip(host=192.168.1.10;port=2638)

Applications that only name a server (ENG=…) or a database file (DBF=…) are mapped in eqlserver-sqlanywhere.ini next to the driver. Details are in the chapter SQL Anywhere applications.

Informix applications New

Informix applications run on EQLServer without a change in the program or its connection string. The EQLServer driver iclit09b.dll has the file name of the Informix driver. The .NET providers (Informix.Net.Core, IBM.Data.Informix) and ODBC applications load it. Copy the informix folder of the package to the computer of the application and run:

# .NET and CLI programs: driver into the program folder
.\informix\install-informix-driver.ps1 -AppDir C:\Apps\Shop -Server ol_shop -ServerHost 192.168.1.10 -Port 9088
# ODBC applications (as administrator): driver names "IBM INFORMIX ODBC DRIVER (64-bit)" etc.
.\informix\install-informix-driver.ps1 -Server ol_shop -ServerHost 192.168.1.10 -Port 9088

The mapping [servers] ol_shop=192.168.1.10:9088 in eqlserver-informix.ini sends every connection to Server=ol_shop to EQLServer. The application keeps its Host= and Service=. The database (Database=shop) is a PostgreSQL or T-SQL database of EQLServer. The Informix user is an EQLServer login. If the application database of the installation (DatabaseName) is not called eqlserver, name it in the mapping: ol_shop=192.168.1.10:9088/PkgTest. See the chapter Informix applications.

SAP/Sybase ASE applications New

Applications for SAP Adaptive Server Enterprise (Sybase ASE) speak the TDS 5.0 protocol. EQLServer has a port of its own for them (default 5000). It is switched off after the installation and is switched on in eqlserver.config.json (available from the version after 1.8.1):

"AseEnabled": true,
"AsePort": 5000

After eqlserverctl restart the applications connect as before; only host and port in interfaces, sql.ini or the connection string change. Users and databases are those of the T-SQL port. Encrypted passwords (RSA) and TLS connections of the clients (Encryption=ssl, certificate data\server.crt) are supported. Details and limits: SAP/Sybase ASE applications.

Microsoft Access applications New

Access front-ends (forms, reports, VBA) stay unchanged: after the import their linked tables point to the T-SQL database of EQLServer, through the ODBC Driver 17/18 for SQL Server:

ODBC;Driver={ODBC Driver 18 for SQL Server};Server=192.168.1.10,1433;Database=northwind;UID=app;PWD=...;Encrypt=no

Programs that open an .mdb/.accdb file through the Access ODBC driver (Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Data\app.accdb) connect to EQLServer with the EQLServer Access driver from the access folder of the package. ADO programs with Provider=Microsoft.ACE.OLEDB.12.0 or Microsoft.Jet.OLEDB.4.0 use the EQLServer OLE DB provider EQLServer.Access.OLEDB from the same folder; DAO programs work with a link file. Programs that send Access SQL directly use the Access mode on the PostgreSQL port. Details are in the chapter Microsoft Access applications.

Advantage applications (ADS)

Replace the application's ACE library with the one from the package: ads\x86\ace32.dll for 32-bit, ads\x64\ace64.dll for 64-bit applications. Next to it, place ace32-eqlserver.ini or ace64-eqlserver.ini (template ads\ace-eqlserver.ini.example) – just like the SQLite replacement's sqlite3-eqlserver.ini. Alternatively, the environment variable EQLSERVER_ADS_CONFIG names the file, and every setting can be set as an environment variable EQLSERVER_ADS_<NAME> (takes precedence). Existing installations with openads.ini keep working unchanged.

[client]
remote_server = tcp://eqlserver-host:6262/C:/App   ; host, ADS port, data folder of the application
remote_user = app_ads@app                          ; login @ T-SQL database
remote_password = Geheim!123
remote_files = 1
ace_report_version = 10.10

adsloc32.dll and axcws32.dll are no longer needed.

Record numbers, NTX indexes, SEEK, scopes and record locks behave as in ADS. The same rows can be read at the same time via T-SQL and PostgreSQL.

New Harbour applications using the Advantage driver rddads (ADSADT, ADSCDX, ADSNTX) also run with the EQLServer ACE library and return the same results as with Advantage 12. If you build rddads yourself, you can use the EQLServer header ace.h; its values match the Advantage SDK.

New Online backup: EXECUTE PROCEDURE sp_BackupDatabase('D:\Backup', NULL) (data dictionary) or sp_BackupFreeTables(source, '*.adt', target, '', NULL) (free tables) write a consistent state of all tables into a folder on the EQLServer machine; sp_RestoreDatabase or sp_RestoreFreeTables bring it back. As on Advantage, the result lists only the tables that could not be backed up. For backing up the whole server, eqlbackup.cmd is still there.

New Locks like Advantage: changing a record locks it from the first field change until the write; when another connection holds the record, the change reports error 5035 at once. Unlocking a record that is not locked reports 5062, and a table lock gives up the own record locks first, as on Advantage 12.

New .NET applications on the Advantage .NET Data Provider (AdsConnection, AdsCommand, AdsDataReader, AdsDataAdapter) run unchanged: the EQLServer ACE library and its ace64-eqlserver.ini or ace32-eqlserver.ini go into the program folder. Parameters with dates, timestamps and empty values, data types and error numbers behave like on Advantage 12.

New ODBC: the ACE library comes with an ODBC driver adsodbc.dll (32 and 64 bit). It sits next to ace32.dll or ace64.dll, works through it and therefore through the same configuration to EQLServer. The connection string knows the keys of the Advantage ODBC driver, for example DataDirectory=C:\Data;ServerTypes=2;. Excel, Power BI, .NET (System.Data.Odbc), PHP PDO_ODBC and other ODBC programs read and write the same tables with it.

New OLE DB: adsoledb.dll (32 and 64 bit) is an OLE DB provider under the name of the Advantage provider. Connection strings like Provider=Advantage.OLEDB.1;Data Source=C:\Data\app.add;User ID=…;Password=…;ServerType=ADS_REMOTE_SERVER;TableType=ADS_ADT stay unchanged; Data Source is a data dictionary or a folder of free tables. ADO (Delphi TADOConnection, VB6, VBA, Classic ASP) and .NET System.Data.OleDb work with it through the ODBC driver adsodbc.dll next to it: queries, ? parameters, transactions, Advantage error numbers. Set it up as administrator with register-oledb.cmd in ads\x86 or ads\x64; this registers the provider and the ODBC driver, and the provider then also appears in the Data Link dialog.

New PHP, Perl, Python, Ruby and Node.js: the Advantage drivers of these languages work through the SQL interface of the ACE library (ads_connect, ads_prepare, ads_execute, ads_fetch_next …). EQLServer offers this interface in ace32.dll and ace64.dll with the same results as Advantage 12, including ? parameters, column descriptions and error codes. The application stays unchanged; the DLL is replaced and pointed to EQLServer with ace32-eqlserver.ini or ace64-eqlserver.ini.

New The EQLServer ACE libraries ace32.dll and ace64.dll now export all function names of the Advantage 12 libraries. Programs that statically link a rarely used ACE function therefore start without the error message "The procedure entry point could not be located". Rarely used functions that EQLServer does not implement yet answer the Advantage error 5004 (function not available) instead of a seeming success; the list is in COVERAGE.md.

New If the application creates tables itself (AdsCreateTable, for example yearly or helper tables), they are created directly in EQLServer, in the schema of their folder. The same field types as in Advantage 12 are allowed, per table format (DBF with NTX or CDX, Visual FoxPro, ADT). ADT tables return the same records as the original for all 23 field types.

New Advantage SQL: queries, modifications and the SQL functions return the same results as Advantage 12. Tables and indexes can be created, altered and dropped with SQL (CREATE/ALTER/DROP TABLE, CREATE/DROP INDEX, temporary # tables). SQL scripts with variables, IF, WHILE, cursors and TRY … CATCH also run when the application executes them directly; as with Advantage, the result of the last SELECT is the result of the script. If the application is connected to a data dictionary, tables, indexes and views created with SQL are entered into the dictionary as with the original and removed again when dropped. Managing the dictionary with SQL also works as with Advantage: creating and dropping users and groups, changing passwords, granting rights (GRANT/REVOKE), setting default values and field rules, and creating procedures and triggers.

New Full-text search: CONTAINS and SCORE in Advantage SQL return the same hits as Advantage 12, with words, AND/OR/NOT, wildcards (cat*), phrases and NEAR; full-text indexes are created with CREATE INDEX … CONTENT.

New Tables from other dialects: tables created over T-SQL, MySQL or PostgreSQL are reachable for Advantage applications too – by their name in the dbo schema of the connected database (remote_user = app_ads@app). Advantage SQL reads and changes them directly (SELECT, INSERT, UPDATE, DELETE). AdsOpenTable opens them as a read-only snapshot taken when the table is opened; changes through it are refused (error 5054, no update right). Imported tables and tables created over ADS behave as before.

For software vendors: moving an Advantage application

New How to move an application that works with Advantage (ADS 8 to 12) to EQLServer without changing the program.

  1. Take stock: which libraries does the application load? ace32.dll (32 bit) or ace64.dll (64 bit); with .NET also Advantage.Data.Provider.dll; with ODBC the Advantage ODBC driver. Are the tables free tables in a folder (DBF/NTX/CDX, ADT/ADI) or in a data dictionary (.add)?
  2. Transfer the data: import the data folder or the data dictionary once into an EQLServer database (see From Advantage and xBase). For ADT tables, adsexport.exe reads the files through the original ACE library of the application. The import checks every index key and the order and records checksums.
  3. Replace the libraries: replace ace32.dll / ace64.dll of the application with the ones from ads\x86 or ads\x64 of the package. adsloc32.dll, axcws32.dll and the ICU files are no longer needed. For ODBC, put adsodbc.dll next to them and register it under the driver name the application uses. The .NET provider stays unchanged; only the ACE library in the program folder is replaced.
  4. Set up the connection: put ace32-eqlserver.ini or ace64-eqlserver.ini next to the library (template ads\ace-eqlserver.ini.example). remote_server names the host, the ADS port and the data folder under which the application opens its tables. Instead of the file, %EQLSERVER_ADS_CONFIG% or EQLSERVER_ADS_* environment variables work too.
  5. Check: start the application, log in, go through typical tasks (search, enter, change, print). Multi-user: let two workstations change the same record at the same time; the second one gets error 5035 as on Advantage.
  6. Roll out: ship the libraries and the ini file with the program. Going back is possible at any time by putting the original DLLs back; the data is then in EQLServer, though.

Known differences from Advantage: numbers of deleted ADT records are not reused; every index is always current (also NTX files that were not open during changes); full-text index options and AEP extension DLLs are not supported yet. The full list is in COVERAGE.md.

SQLite applications

Place the contents of sqlite\ next to the application (the existing sqlite3.dll is replaced) and create sqlite3-eqlserver.ini:

[connection]
host = 127.0.0.1
port = 5432
dbname = eqlserver
user = sqliteapp
password = Geheim!123

[mapping]
inventory.db = inventory        ; file name -> schema

Every statement goes to the server. Bulk loads are therefore considerably slower than with a local SQLite file. Statically linked applications and MSIX apps are not supported.

Oracle mode

Oracle mode runs over the PostgreSQL protocol. The easiest way is to switch it on permanently for a login: "OracleRoles": ["hr"] in the configuration file. For a single session:

SELECT eqlserver_oracle.enable_session();
SELECT NVL(commission_pct, 0), SYSDATE FROM employees WHERE ROWNUM <= 10;

Translated are, among other things, DUAL, NVL, DECODE, (+) joins, CONNECT BY, sequences and PL/SQL procedures, functions, packages and triggers. SQL*Plus, SQL Developer and OCI cannot connect directly (no Oracle Net protocol).

Multiple databases

One installation holds any number of T-SQL databases. You work with them as in SQL Server:

CREATE DATABASE lager;
USE lager;
SELECT a.Nr, a.Name, SUM(p.Menge) AS Verkauft
FROM lager.dbo.Artikel a
JOIN mandant1.dbo.Rechnungsposition p ON p.ArtikelNr = a.Nr
GROUP BY a.Nr, a.Name;

MySQL clients use the same names (USE lager), Firebird clients the database name of the connection, the SQLite DLL the file name. PostgreSQL clients connect to eqlserver and reach a T-SQL database through the schema <database>_dbo:

SELECT * FROM lager_dbo.artikel;                 -- per query
psql "dbname=eqlserver options='-c search_path=lager_dbo'"   -- per connection

Change the structure only in the current database: reading and changing data with three-part names (SELECT, INSERT, UPDATE, DELETE on lager.dbo.Artikel) works across databases. Structure changes in another database do not: CREATE TABLE lager.dbo.t reports "permission denied for schema lager_dbo", ALTER TABLE, DROP TABLE and CREATE INDEX … ON lager.dbo.t report "must be owner of table". Babelfish runs these statements as the user of the current database. EXEC lager.sys.sp_executesql N'CREATE TABLE …' does not switch the database either; the table is created in the current one. Switch with USE first:

USE lager;
CREATE TABLE dbo.t (id int PRIMARY KEY);
USE mandant1;

Besides T-SQL databases, an application can also use its own PostgreSQL database in the instance, separate from all others. This is a good fit for SQL Anywhere applications; see SQL Anywhere applications.

Remote access over port 443 (tunnel)

The tunnel carries a database connection through firewalls, corporate proxies and virus scanners, without a VPN. The application keeps connecting to localhost; the tunnel DLL or the tunnel program carries the connection to the server over HTTPS.

Server

"TunnelEnabled": true,
"TunnelHost": "db.example.com",
"TunnelCertificate": "letsencrypt",
"AcmeEmail": "it@example.com"

At startup, EQLServer creates tunnel\tunnel-keys.txt with an access key, opens the firewall and starts the gateway. One key per line; removing a line revokes access immediately.

Client without code changes

; eqlserver-tunnel.ini
url=https://db.example.com/eqlserver/
key=<access key>
channel=tsql
localport=21444
eqlserver-tunnel.exe --test --config eqlserver-tunnel.ini   rem check the connection
eqlserver-tunnel.exe --config eqlserver-tunnel.ini

The application (or SSMS) then connects to 127.0.0.1,21444. Delphi applications start the tunnel themselves with EQLServerTunnelStart from tunnel\client\delphi\EQLServerTunnel.pas.

Migrating data

The procedure sys.eqlserver_import takes over databases from other systems. It is called in T-SQL (SSMS, sqlcmd) and returns its log as a result set. With @target_database, the import goes into its own T-SQL database, which is created if necessary.

From Microsoft SQL Server

EXEC sys.eqlserver_import
     @source_type     = N'MSSQL',
     @source          = N'Server=sql01;Database=Vertrieb;Integrated Security=true',
     @target_database = N'vertrieb',
     @options         = N'tables=Kunden,Auftraege;batch=5000';

Copies the structure (columns, types, IDENTITY, primary keys) and the rows via bulk copy. Computed columns and rowversion are skipped and named in the log.

From SQL Anywhere

EXEC sys.eqlserver_import
     @source_type     = N'SQLANYWHERE',
     @source          = N'C:\App\DB\app.db',
     @target_database = N'app',
     @options         = N'uid=dba;pwd=sql';

For SQL Anywhere 5 to 17. The application's 32-bit ODBC driver must be present on the EQLServer computer. The database file is copied first; only the copy is opened. Tables, columns, default values, keys, indexes, foreign keys, views, procedures, triggers and all rows are taken over. Finally, the import reads every table back through the EQLServer driver and compares row count and checksum with the source (CHECK … identical in the log).

From Informix New

EXEC sys.eqlserver_import
     @source_type     = N'INFORMIX',
     @source          = N'Database=shop;Server=ol_shop;Host=ifxhost;Service=9088;UID=informix;PWD=...',
     @target_database = N'shop';

The import needs the Informix Client SDK on the EQLServer computer (option csdk=<folder>). The source database is only read. It transfers:

  • tables with columns, data types, defaults and all rows;
  • primary, unique, check and foreign keys, and indexes;
  • SERIAL counters, sequences, views and synonyms;
  • SPL procedures, functions and triggers.

At the end the import reads every table back through the EQLServer Informix driver and compares row count and checksum with the source (CHECK … identical in the log). It can also be called directly: eqlserver-import-informix.ps1 -Source '…' -TargetDatabase shop.

From SAP/Sybase ASE New

.\eqlserver-import-ase.ps1 -SourceServer asehost:5000 -SourceUser sa -SourcePassword ... `
    -SourceDatabase sales -TargetDatabase sales

The import reads a running ASE server over its own protocol and needs no SAP software. It copies datatypes, tables with defaults, rules, identity and computed columns, all rows, indexes, keys and check constraints, messages (sp_addmessage), views, procedures, triggers and functions. The row counts of both sides are compared; the log names every problem. Logins, users, groups and rights are not copied. An ASE dump file is loaded into an ASE server first. The import was tested against the TDS 5.0 port of EQLServer; an ASE server was not available.

From Microsoft Access (.mdb, .accdb) New

EXEC sys.eqlserver_import
     @source_type     = N'ACCESS',
     @source          = N'C:\Data\Northwind.accdb',
     @target_database = N'northwind'

The import reads a copy of the file with the Access database engine (ACE) of the EQLServer computer: the free Microsoft 365 Access Runtime (64-bit) or the Microsoft Access Database Engine 2016. Without a 64-bit ACE it uses the 32-bit ACE or the Jet 4.0 engine of Windows (.mdb only). It transfers:

  • the tables with SQL Server types as an Access front-end expects them: Yes/No → bit, AutoNumber → int IDENTITY (values kept, the counter continues), Currency → money, Date/Time → datetime (datetime2 when values before the year 1753 occur; Access links these columns as Date/Time too), Short Text → nvarchar(n), Long Text and Hyperlink → nvarchar(max), OLE Object → varbinary(max);
  • the rows, primary keys and indexes (unique indexes on columns with Nulls filtered, as Access allows them);
  • the relationships as foreign keys with cascades (ON UPDATE/DELETE CASCADE), default values and validation rules as CHECK;
  • attachment and multi-value fields as child tables <table>_<field> with the original files, calculated fields computed for new and changed rows, hyperlink fields in the Access format text#address# (parts with dbo.eql_hyperlink_text and dbo.eql_hyperlink_address);
  • the saved select, union and crosstab queries as views (translated by the Access mode). Parameter and action queries and queries with form references stay in the front-end;
  • New table data macros as triggers, with the option datamacros=access or datamacros=<folder> (see below).

Every table gets the column eql_rowversion: Access uses it to detect changes of other users. At the end the import reads every table back and compares the record count and checksum with the source (CHECK … identical). Direct call: eqlserver-import-access.ps1 -Source C:\Data\Northwind.accdb -TargetDatabase northwind.

Data macros New

EXEC sys.eqlserver_import @source_type = N'ACCESS', @source = N'C:\Data\Northwind.accdb',
     @target_database = N'northwind', @options = N'datamacros=access'

Data macros (Access 2010 and later) of the events Before Change and Before Delete made of SetField, RaiseError, StopMacro, If/Else If/Else, [IsInsert] and [Old].[field] become triggers of the table. They apply to every way into the table: T-SQL, linked Access front-ends, the Access mode, the ODBC driver and the OLE DB provider. RaiseError ends the statement with the text of the macro. A user name function of the application's VBA code (for example GetAuditFieldsUserName(), CurrentUser()) becomes the login of the session. For Northwind 2.0 the audit macro of all 20 tables (AddedBy, AddedOn, ModifiedBy, ModifiedOn) is translated completely.

Access stores data macros so that only Access itself can read them. With datamacros=access the import starts Access or the Access Runtime hidden on an empty carrier database, imports the table definitions into it and saves the macros as text. Nothing of the application runs (no AutoExec, no startup form, no VBA). The folder of the carrier database is a trusted location of the logged-on Windows user for the time of the export and is removed again. With datamacros=<folder> the import reads files exported before (<table>.xml from SaveAsText acTableDataMacro). Without the option data macros are not read; the log says so.

Not translated and listed one by one in the log: macros of the events After Insert/Update/Delete, named data macros, LookupRecord, ForEachRecord, CreateRecord, EditRecord, local variables and expressions with other VBA functions. They belong into T-SQL triggers or procedures.

From Advantage and xBase (DBF, NTX, CDX, ADT)

-- DBF tables (dBASE, Clipper, FoxPro, Visual FoxPro) with DBT/FPT memos and NTX/CDX/IDX indexes
EXEC sys.eqlserver_import @source_type = N'ADS', @source = N'C:\App\Daten',
     @target_database = N'app';

-- ADT tables, encrypted ones with a table password
EXEC sys.eqlserver_import @source_type = N'ADS', @source = N'C:\App', @target_database = N'app',
     @options = N'ace=C:\App\ace32.dll;tablepasswordfile=C:\App\tabpw.txt';

@source is a folder on the server. Every DBF file becomes a table, every NTX file and every tag of a CDX or IDX file an index; subfolders become schemas. Texts are converted to Unicode (OEM or ANSI, depending on the marker in the file), and every index key is compared with the one EQLServer computes, as is the order.

New Data dictionary (.add): if a data dictionary is in the folder, it is taken over as well (options dduser=, ddpassword=). Its tables, default values, field rules (required field, minimum, maximum), views, relations (referential integrity) and stored procedures and triggers in Advantage SQL then apply in EQLServer. Users log on as usual with name and password; since Advantage does not reveal the passwords, EQLServer takes them from the file given in the option ddpasswords= (lines user=password, checked against the original during import) or remembers the password of the first logon. If rights checking is switched on in the dictionary, the rights of users and groups on tables, views and procedures apply as on the Advantage server; the application keeps connecting to the .add file and works with the dictionary's names.

New Visual FoxPro tables with all field types (Currency, DateTime, Double, Integer with autoincrement, VarChar, Blob, General) and FPT memos are taken over. Sorting follows the Advantage server: ANSI tables by ANSI collation, OEM tables by bytes (Clipper) or by the German OEM collation if the index files are sorted that way.

From Firebird

SELECT * FROM eqlserver_firebird.fbimport(
  'fbhost/3050:C:\daten\app.fdb', 'SYSDBA', 'masterkey', 'app');

Reads the source database over the network and creates domains, generators, exceptions, tables with data, keys, checks and indexes as well as procedures, views and triggers in the schema app. Only a superuser may call the import.

New features in practice

These features were added most recently. They were tested with real applications, among them a PowerBuilder 6.5 application on SQL Anywhere 5.5 and a Harbour application on Advantage.

Running SQL Anywhere applications unchanged

Applications for SAP/Sybase SQL Anywhere run on EQLServer without any change to the program. The server translates Watcom SQL (TOP/START AT, data types, over 100 functions, DEFAULT AUTOINCREMENT, INSERT ON EXISTING, procedures, triggers, SYS views, sa_* procedures) and returns SQL Anywhere error numbers. New Procedures in the Transact-SQL dialect of SQL Anywhere (CREATE PROCEDURE p @a INT, @b INT OUTPUT AS … without BEGIN … END, with IF/ELSE/WHILE over single statements), KEY JOIN (join over the foreign key) and SELECT … FOR XML RAW | AUTO [, ELEMENTS] are translated as well.

Example: PowerBuilder application on SQL Anywhere 5.5

  1. Import the databaseas described under From SQL Anywhere, for example into app.
  2. Switch the driverIn the application's system DSN, set the driver to eqlserver-sqlanywhere-odbc.dll (x86).
  3. Mapping and profileIn eqlserver-sqlanywhere.ini next to the driver:
    [databases]
    appdb = app                        ; database name of the DSN -> EQLServer database
    
    [users]
    dba = app_dba:<password>           ; application login -> EQLServer login
    
    [compat:appdb]                     ; PowerBuilder 6.5 expects SQL Anywhere 5.5
    dbms_name = Sybase SQL Anywhere
    dbms_ver = 05.05.0004
    driver_name = WOD50T.DLL
    driver_ver = 05.05.0004
    driver_odbc_ver = 02.10
  4. Start the programThe program itself stays unchanged. Several workstations work on the same data at the same time.

A separate PostgreSQL database for one application

Instead of a T-SQL database, a SQL Anywhere application can live in its own PostgreSQL database in the instance, cleanly separated from all other applications. A DBN or a [databases] mapping that names an existing PostgreSQL database connects directly to it. The extension must be created in that database:

CREATE DATABASE app OWNER app_dba;
\c app
CREATE EXTENSION eqlserver_sqlanywhere;

EQLServer updates the extension at every start in all databases that have it. Such a database cannot be reached through T-SQL (SSMS) or MySQL, only through PostgreSQL and the SQL Anywhere driver.

New Java, .NET and ADO: Java applications replace their sajdbc4.jar with sqlanywhere\jdbc\sajdbc4.jar (with postgresql-42.7.4.jar next to it) and keep the jdbc:sqlanywhere:… URL and the driver class; .NET applications use System.Data.Odbc, VB6 and ASP applications ADO with the SQL Anywhere connection string; Transact-SQL procedures that return a result set need no RESULT clause.

Running Informix applications unchanged New

The server translates Informix SQL in its Informix mode. This covers:

  • SERIAL with Informix behaviour: 0 takes the next number, DBINFO('sqlca.sqlerrd1') returns it.
  • DATETIME/INTERVAL with qualifiers, MONEY and LVARCHAR.
  • FIRST/SKIP, MATCHES and OUTER joins.
  • TODAY/CURRENT, n UNITS DAY, col[1,3], NVL, DECODE, MDY, EXTEND and TO_CHAR with %Y-%m-%d.
  • INTO TEMP, storage clauses (IN dbspace, LOCK MODE, FRAGMENT BY), SET ISOLATION/LOCK MODE and the system catalog (systables, syscolumns, …).

SPL procedures, functions and triggers become PL/pgSQL, for example FOREACH … RETURN … WITH RESUME, ON EXCEPTION and RAISE EXCEPTION -746.

The driver behaves like the Informix driver:

  • It reports Informix type names and DATETIME qualifiers, which the .NET providers rely on.
  • It returns Informix error numbers (-239 duplicate value, -206 table missing, -201 syntax, …).
  • Result types such as COUNT → DECIMAL and the NULL ordering are those of Informix.

A differential test runs the same statements against Informix and EQLServer and compares values and .NET types line by line.

Objects created in T-SQL can be used as well: EXECUTE PROCEDURE p() calls a T-SQL procedure and returns its result set, functions and views work in queries; names such as dbo.items in their body belong to the database they were created in. MATCHES on T-SQL columns follows the case rule of the column, like = and LIKE. Tables with T-SQL triggers can be read, but not changed, from Informix sessions.

Example: ASP.NET Core application (Informix.Net.Core)

  1. Import the databaseas described under From Informix, for example into webapp.
  2. Create the loginwith the name and password the application uses (CREATE LOGIN informix …, user in webapp).
  3. Copy the driverinstall-informix-driver.ps1 -AppDir <program folder> -Server ol_informix1500 -ServerHost <EQLServer> -Port 9088. The application ships Informix.Net.Core.dll itself; the Client SDK is no longer needed.
  4. Start the applicationConnection string and program stay unchanged; reading, inserting, updating, SERIAL numbers and decimal amounts run on EQLServer.

Differences: integer arithmetic follows PostgreSQL: 7 / 2 is 3, Informix gives 3.5. Row and collection types (ROW, SET, LIST) and DataBlades are not supported. The full description is in informix\INFORMIX.md.

SAP/Sybase ASE applications New

The TDS 5.0 port translates the protocol and the Sybase dialect of Transact-SQL. It covers:

  • login, language commands, RPC, dynamic SQL, cursors with positioned changes, bulk copy (bcp), cancelling running commands;
  • all data types of ASE, also unichar, univarchar, unitext, bigdatetime and the unsigned integers;
  • the defaults of ASE: columns are NOT NULL unless stated, strings in double quotes, = NULL, *= and =*, chained mode, at isolation, set rowcount;
  • cursors across batches with @@sqlstatus, where current of (the table needs a unique index);
  • print and raiserror with %1!, message numbers of your own, rollback trigger;
  • system tables and system procedures in the format of ASE (sysobjects, syscolumns, sp_help, sp_helpdb, sp_who, sp_columns …).

What was verified: FreeTDS (tsql, bsqldb, freebcp, CT-Library, ODBC), jTDS, the .NET driver AdoNetCore.AseClient, sqsh and an own protocol test; more than 500 checks in total, the protocol test also over TLS. The expected results come from the SAP documentation. It was not verified against an SAP ASE server or with the drivers of SAP (Open Client, jConnect), because they were not available.

Limits: SQL text that a procedure builds in a variable runs as T-SQL without translation. Not available are compute, lock table, readtext/writetext and dump/load database. The complete list is in docs\ASE.md.

Microsoft Access applications New

EQLServer takes over the data of Access applications in six ways: import of the database (with data macros as triggers), Access front-ends on linked tables, Access SQL in the Access mode, programs that open the file through the Access ODBC driver, ADO programs with the Jet/ACE OLE DB provider, and DAO programs through a link file.

Moving an Access front-end to EQLServer

  1. Install the Access Runtimeon the EQLServer computer (64-bit, free), so that the import can read the file.
  2. Import the databaseas described in From Microsoft Access, for example EXEC sys.eqlserver_import @source_type = N'ACCESS', @source = N'C:\Data\Northwind_be.accdb', @target_database = N'northwind'. The log must end with record counts and checksums identical.
  3. Create a loginfor the users of the front-end (CREATE LOGIN app WITH PASSWORD = '…', user in northwind with db_datareader and db_datawriter).
  4. Install the ODBC driveron the workstations: ODBC Driver 17 or 18 for SQL Server.
  5. Relink the tablesin the front-end: delete the linked tables and create them again with ODBC;Driver={ODBC Driver 18 for SQL Server};Server=<EQLServer>,1433;Database=northwind;UID=app;PWD=…;Encrypt=no and the source table dbo.<name> (Linked Table Manager or a short VBA module, example in ACCESS.md). Save the password (dbAttachSavePWD).
  6. Check the VBA codeOpenRecordset and Execute on tables with AutoNumber need dbSeeChanges. Forms with attachment fields show the child table <table>_<field> as subform.
  7. Start the front-endforms, reports, queries and macros run on the tables of EQLServer. Other users and other programs (T-SQL, PostgreSQL, MySQL, web) work with the same rows at the same time.

What EQLServer does for it: the T-SQL endpoint understands the ODBC escape sequences ({fn UCASE(…)}, {d '…'}, {oj …}) that Access sends for every query on linked tables; date columns are linked as Date/Time, the row version for concurrent changes is reported and every index column is returned exactly once. Columns with dates before 1753 (datetime2) are linked by Access as Date/Time and read and written as dates (limits of Access: no fractions of a second, no date before the year 100). All 48 form-independent queries of Northwind 2.0 return the same rows on the linked tables as on the local ones.

Access SQL directly (Access mode)

Programs that send Access SQL switch on the Access mode on the PostgreSQL port: SELECT eqlserver_access.enable_session('northwind') or SET eqlserver.compat_mode = 'access'. Translated are among others [names], #dates#, &, Like with * and ?, IIf, Nz, Format, DateAdd/DateDiff/DatePart, TOP n PERCENT, TRANSFORM … PIVOT, UPDATE and DELETE with joins, PARAMETERS and DLookup/DCount/DSum. A comparison test runs every query with the real Access engine and with EQLServer and compares the rows.

Programs that open the .accdb file

.\access\install-access-driver.ps1 -Server 192.168.1.10 -Port 5432 -User app -Password …
.\access\install-access-driver.ps1 -TakeOver

The EQLServer Access driver takes the connection string of the Access ODBC driver. DBQ= names the file; it is not opened, the driver connects to the database of the same name on EQLServer. With -TakeOver the driver names Microsoft Access Driver (*.mdb, *.accdb) and Microsoft Access Driver (*.mdb) point to EQLServer too; -Restore restores the Microsoft drivers. Binary parameters (for example a picture for an OLE Object field) are stored as bytes.

ADO programs (Jet/ACE OLE DB provider) New

Provider=EQLServer.Access.OLEDB;Data Source=C:\Data\Northwind.accdb;Persist Security Info=False

ADO programs (VB6, VBA, Delphi, ASP, .NET OleDbConnection) that open the file with Provider=Microsoft.ACE.OLEDB.12.0 or Microsoft.Jet.OLEDB.4.0 use the EQLServer OLE DB provider with the same connection string. Data Source= names the file; it is not opened. install-access-driver.ps1 registers the provider together with the ODBC driver for 64-bit and 32-bit (ARM64 on Windows on ARM) under its own name EQLServer.Access.OLEDB; the Microsoft providers stay unchanged.

.\access\install-access-driver.ps1 -TakeOverOleDb
.\access\install-access-driver.ps1 -Restore

Only with the switch -TakeOverOleDb the names Microsoft.ACE.OLEDB.12.0, Microsoft.ACE.OLEDB.16.0 and Microsoft.Jet.OLEDB.4.0 point to EQLServer too, so that programs run without a change. This then applies to every program on that computer that opens an Access file through these providers. The original registration is kept, -Restore puts it back; Microsoft's files are not changed. A comparison test runs 73 queries over ADO with the real ACE provider and with the EQLServer provider: all return the same rows.

The provider works through the ODBC driver (MSDASQL of Windows). Some ADO field types therefore differ from Jet (Date/Time adDBTimeStamp, Currency adNumeric); the values are the same. Seek/Index and compacting through JRO are not available. With a server-side keyset cursor the AutoNumber of a new row is not in the recordset after Update: use a client cursor (adUseClient) or SELECT @@IDENTITY.

One Access file with data and user interface; DAO programs New

.\eqlserver-import-access.ps1 -Source C:\Data\orders.accdb -TargetDatabase orders
.\access\new-access-link-stub.ps1 -Source C:\Data\orders.accdb -Replace

Access, DAO (DBEngine.OpenDatabase) and the Access engine read local tables from the file themselves; there is no driver in between. Between them and a linked table there is one. The script therefore replaces the tables of the file: forms, reports, modules, macros and saved queries stay in it, every local table becomes a linked table of the same name, the rows are in EQLServer. Display properties of the fields (caption, format, input mask, lookup) are taken over, the number of rows of every table is compared with the original. With -Replace the link file is at the path of the original; the original is kept as .original and stays unchanged in its place when a step fails. -Out writes a second file.

Two kinds of links: the default is the EQLServer Access driver. DAO code runs on it without dbSeeChanges, the file holds no server, login or password; they are in eqlserver-access.ini next to the driver, the password there in plain text (protect the file with NTFS rights, use a login with the rights of the application only). With -Via SqlServer -Server <EQLServer>,1433 -Database orders the file uses the ODBC Driver 18 for SQL Server; the workstation then needs no EQLServer software, DAO code on tables with an AutoNumber needs dbSeeChanges. A password is stored only with -SavePassword, in plain text and with a warning.

Proven: Microsoft's Northwind 2.0 Starter, data and user interface in one file, in the real Access Runtime, the original and the converted file compared value by value: 27 forms with subforms, 6 reports, 26 saved queries, 9 tables; 15,722 of 15,745 values are identical. The other 23 are one attachment field and one AutoNumber that a form shows before saving. New, edit and delete through a form behave as in the original; the row is checked and changed over T-SQL in between. Reading all objects takes 84 seconds in the original and 85 seconds in the link file (server on the same computer). Not proven: other applications than Northwind and the test databases, 32-bit Access, Access versions other than Microsoft 365, workgroup security, large tables over slow networks.

What differs (as in any Access front-end on a server): no table-type recordsets (dbOpenTable, Seek, Index); an AutoNumber and default values appear when the record is saved; attachment and multi-value fields are child tables, the field is missing in the linked table (the script names these fields); Hyperlink fields are Long Text text#address#; every table has the column eql_rowversion; rules of the server report an ODBC error instead of the validation text.

Differences: Format and date texts follow the English (United States) formats. Of the data macros the events Before Change and Before Delete are translated, the others are listed in the import log. The complete description is in access\ACCESS.md.

Advantage applications

Clipper/Harbour, Xbase++, X# and Delphi applications for the Advantage Database Server work on normal database tables with the EQLServer ACE library. Procedure:

  1. Create a login
    CREATE LOGIN app_ads WITH PASSWORD = 'Geheim!123', DEFAULT_DATABASE = app;
    USE app;
    CREATE USER app_ads FOR LOGIN app_ads;
    ALTER ROLE db_owner ADD MEMBER app_ads;
  2. Import the datawith sys.eqlserver_import @source_type = N'ADS' (see Import).
  3. Replace the ACE DLLand set remote_user = app_ads@app (see Connecting).

Every ADS connection is a normal server session and appears in sys.eqlserver_clients.

Converting applications with EQLMaker New

EQLMaker is a product of its own (free software, AGPL-3.0-or-later). It holds all the tools to understand a legacy application and rebuild it as a modern web application: recording of operation and screen, reading of PowerBuilder libraries, the specification, the web rebuild and the comparison tests. These tools exist only there, not a second time in the EQLServer package.

Set up: start.cmd /eqlmaker fetches the current version into a folder of its own beside EQLServer and registers this server as its data source (Set up EQLMaker).

Why database transactions and GUI actions belong on one time line: to rebuild an application you have to know which input causes which database movement. EQLMaker puts the database transactions (statements, parameters, changed rows) and the actions on the screen (click, input, window) on one common time line; only that shows what a form really does when it is opened, saved or deleted.

EQLServer behind it: many legacy applications do not speak PostgreSQL but SQL Server, SQL Anywhere, Informix, Advantage, Access or ASE. EQLServer is the server behind which they run unchanged; the source eqlserver in EQLMaker also reads the statements of the other protocols (statistics port of the connection pool). POC replay can replay the recorded statements (<name>.sql.tsv) against EQLServer.

More: eqlmaker.org (German: eqlmaker.org/de) with the manual of EQLMaker.

Narrating demo videos New

EQLMaker lays a spoken commentary over a finished demo video. The voice describes step by step what happens on screen and keeps talking through quiet passages. Optionally, background music plays underneath and is lowered while the voice speaks. The picture stays unchanged. Speech is generated locally; nothing is sent to a cloud service.

Prerequisite: a running local Fish Speech installation with a registered voice reference. narrate checks the server and the voice first and stops with an error instead of using another voice.

eqlmaker narrate-draft captions.srt --video demo.mp4 --lang en
# write the texts into captions.narration.json
eqlmaker narrate --video demo.mp4 --script captions.narration.json --voice my-voice --lang en --out demo_narrated.mp4 --music music.mp3 --music-volume 30
  1. narrate-draft turns the caption timeline into a script skeleton that covers the whole video, with a hint and a character budget per segment.
  2. Texts for each segment are written by a person or an AI; an empty text means silence.
  3. narrate speaks every segment, fits it into its time slot (at most slightly sped up), mixes the music underneath and writes the video.
OptionMeaning
--video, --scriptvideo and script with the texts
--voicevoice reference on the Fish Speech server
--langlanguage of the narration
--musicbackground music (mp3 or wav), optional
--music-volumemusic level in percent (default 30)

Configuration: the Fish Speech server address and the voice reference can be set in eqlmaker.json under narration.* (ttsUrl, voices, voice), so the command line does not need them.

MCP: the tools narrate_draft and narrate offer the same for Claude.

Licences: the licences of voice and model are the user's responsibility.

POC replay: classify statements

eqlserver-replay.ps1 replays the SQL of an application against EQLServer and classifies every statement. Input is a recording of EQLMaker (<name>.sql.tsv, see Converting applications with EQLMaker: T-SQL batches and RPC calls over TDS, one connection per recorded session; statements over the PostgreSQL protocol with the dialect setting of the recorded login) or a script (.sql: T-SQL with GO, or separated by ; with -Dialect postgresql|oracle|sqlanywhere|informix).

.\eqlserver-replay.ps1 -Path C:\Recordings\order-entry.sql.tsv
.\eqlserver-replay.ps1 -Path schema.sql, procedures.sql -Database Shop -Name shop-poc
.\eqlserver-replay.ps1 -Path oracle-app.sql -Dialect oracle -Database app -Rollback
ClassMeaning
RUNruns. An error from the data (key violation, NOT NULL, RAISERROR/THROW of the application) counts as RUN with a note.
FIXEDfailed before (in the recording or in the previous replay with the same -Name) and runs now
IGNOREDengine-specific, accepted without effect and logged: sp_configure, ALTER DATABASE … SET, DBCC (folder IGNORED), WITH (NOLOCK), OPTION (MAXDOP …), ON [PRIMARY], index storage options, Oracle hints and TABLESPACE/STORAGE
OPENfails (syntax, unknown function or object, not supported), with error number and message

Result in the folder -OutDir (default .\replay): poc-compat.log (totals and the list of IGNORED, FIXED and OPEN statements), poc-compat.tsv (all statements with their run time) and poc-compat.state.json (basis for FIXED in the next run). Parameters of RPC calls are not in the recording: an undeclared @name is declared as NULL. -Rollback rolls every statement back, the database stays unchanged.

Who is connected?

SELECT connection_type, login_name, database_name, program_name, host_name,
       client_net_address, connected_since, last_request_time, request_count, status
FROM sys.eqlserver_clients
ORDER BY connected_since;

Lists every client connection, whether through the connection pool or direct, on the main server and on every compute node.

Connection pool

The pool (default: on, PoolEnabled) lets many T-SQL clients share a few database connections. Nothing changes for the application: SET options, prepared statements, temporary tables and transactions behave as usual. The monitoring page shows statistics. Details on compute nodes and high availability are in docs\SCALING.md.

Error reports

If a T-SQL statement fails because of a compatibility gap, EQLServer writes a report to ERRORS\<GUID>.SQL and appends [EQLServer #<GUID>] to the error message. The status can be queried:

GET http://server:1450/ERRORFIXED?guid=<GUID>     → OPEN | FIXED | REJECTED: <reason> | UNKNOWN

Delphi applications use Delphi\EQLServerErrorReport.pas for this (ExtractEQLServerGuid, WaitUntilResolved, ReportError).

Operation

Backup and restore

CommandEffect
eqlbackup.cmd backupphysical backup of the whole server while it is running, verified
eqlbackup.cmd backup -Logicallogical backup of the application database and all logins
eqlbackup.cmd backup -Database lagera single T-SQL database
eqlbackup.cmd restore -Database lager <folder> -Replacerestore a database while the server is running
eqlbackup.cmd restore <folder>restore a physical backup (stop the server first)
eqlbackup.cmd schedule -At 02:00daily backup via Windows Task Scheduler
eqlbackup.cmd listexisting backups and result of the last run

Use -Target \\nas\sicherung to back up to another drive or a network share; -Keep 14 keeps 14 backups. Older ones are deleted only once a new one has been verified.

Monitoring

Monitoring runs in the HTTPS gateway (TunnelEnabled: true) and is protected with the same access keys as the tunnel:

https://<server>/eqlserver/monitor?key=<access key>   browser page, refreshes every 15 s
https://<server>/eqlserver/metrics                         Prometheus (key as bearer token)

The page shows connections per dialect (T-SQL, PostgreSQL, MySQL, Oracle mode, SQLite, Firebird, SQL Anywhere, Advantage, Informix; sessions in the Oracle, SQL Anywhere and Informix modes count under their dialect, also after SET eqlserver.compat_mode; list: SELECT * FROM eqlserver.session_dialects()), transactions per second, waiting locks, database size and growth, the last backup and the slowest statements. Templates for Grafana, Zabbix and PRTG are in tunnel\monitoring\. The performance monitor continuously measures the actual CPU performance:

SELECT * FROM eqldb.system_performance;

New Performance per database: the tile Performance per database shows for every database the number of statements, the mean execution time, the share of the statement time of the whole server and a performance score from 0 to 100 %. The score is the Apdex value of the statement mean times: statements up to 100 ms count fully, up to 400 ms half, slower ones not. Below 70 % the value is red, from 94 % green. T-SQL databases are counted one by one, even though they all live in one PostgreSQL database; statements of the other dialects (PostgreSQL, MySQL, Firebird, ADS, SQL Anywhere, SQLite DLL) appear under their PostgreSQL database. The figures count since the last statistics reset (pg_stat_statements) and are also available in SQL and for Prometheus:

SELECT database_name, calls, mean_ms, time_share_pct, score_pct
  FROM eqlserver.perf_database ORDER BY total_ms DESC;   -- from T-SQL and PostgreSQL
eqlserver_database_statements_total{database="lager",source="tsql"}
eqlserver_database_statement_mean_ms{database="lager",source="tsql"}
eqlserver_database_time_share_percent{database="lager",source="tsql"}
eqlserver_database_score_percent{database="lager",source="tsql"}

Sysadmin logins and members of pg_monitor see every database, other logins only the T-SQL databases where they have a user. The CPU score of the server (eqlserver.perf_daily) rates the machine, score_pct the statements of one database.

Built-in web server

With "WebServerEnabled": true, EQLServer starts a web server (Caddy) on port 443. It serves webserver\site, obtains the certificate for WebServerHost by itself and forwards the tunnel path to the gateway. Website and database tunnel thus share one address. For the LAN, "WebServerCertificate": "self-signed" creates its own certificate.

Scaling and high availability

  • Connection pool: many clients, few database connections (see Connection pool).
  • Compute nodes: compute-intensive jobs run on a replicated copy on other computers; the results go to the main server in one transaction.
  • Failover: a standby server replicates the main server. A watchdog on a third computer switches over in case of a failure.

docs\SCALING.md describes the setup computer by computer.

Linux and Docker

EQLServer for Linux is the same server as on Windows: T-SQL, PostgreSQL and the other dialects, the same data types and sort orders, the same configuration file. Windows programs connect over the network; drivers and client libraries (ODBC, OLE DB, ACE) stay on the Windows computers.

Requirements

  • 64-bit Linux (x86_64) with glibc 2.34 or later. Tested distributions: see docs/LINUX.md
  • nothing to install first: all libraries are in the package
  • the server never runs as root

Install as a service (systemd)

sudo mkdir /opt/eqlserver
sudo tar xzf eqlserver-<version>-linux-x86_64.tar.gz -C /opt/eqlserver --strip-components=1
sudo /opt/eqlserver/eqlserver install-service
sudo /opt/eqlserver/eqlserver --home /var/lib/eqlserver password sa --show

The service is called eqlserver and runs as the system user eqlserver. Program and data are separate: /opt/eqlserver and /var/lib/eqlserver (configuration, data, logs, backups).

The first start creates random passwords; they are only in /var/lib/eqlserver/eqlserver.config.json (mode 0600).

TaskCommand
state, portseqlserver status or systemctl status eqlserver
start, stop, restartsystemctl start|stop|restart eqlserver
change a passwordeqlserver password sa --generate
SQL as superusereqlserver psql
removeeqlserver uninstall-service, then delete both folders

Start without a service

To try it, an ordinary user account is enough; program and data are then in the same folder:

mkdir ~/eqlserver && tar xzf eqlserver-<version>-linux-x86_64.tar.gz -C ~/eqlserver --strip-components=1
~/eqlserver/eqlserver start
~/eqlserver/eqlserver test
~/eqlserver/eqlserver stop

Access from the network

After the installation only this computer reaches the server (ListenAddresses: localhost). For other computers set it to * or one address in eqlserver.config.json, restart and open the ports in the firewall. EQLServer changes no firewall rules on Linux. TLS is on; put your own certificate as server.crt and server.key into the data folder.

Backup and update

CommandEffect
eqlserver backupphysical backup while the server runs, verified
eqlserver backup create --logicallogical backup
eqlserver backup create --database stockone T-SQL database
eqlserver backup restore <folder>restore (stop the server first)
eqlserver backup schedule --at 02:00daily backup with a systemd timer

A new version replaces only the program files; the previous ones are kept for the way back:

sudo /opt/eqlserver/eqlserver update eqlserver-<new version>-linux-x86_64.tar.gz
sudo /opt/eqlserver/eqlserver rollback     # program files of the version before

Docker

docker run -d --name eqlserver --restart unless-stopped --stop-timeout 120 --shm-size 256m \
  -p 127.0.0.1:1433:1433 -p 127.0.0.1:5432:5432 \
  -v eqlserver-data:/var/lib/eqlserver eqlserver:<version>
docker exec eqlserver eqlserver password sa --show

There is no default password: without EQLSERVER_SA_PASSWORD_FILE the first start generates a random one. The container runs as user 10001, also with a read-only root file system and without Linux capabilities. A compose file is described in docs/DOCKER.md. The image is delivered as a file (not through a registry): docker load -i eqlserver-<version>-linux-x86_64-image.tar.gz; check the checksum with sha256sum -c first.

VariableMeaning
EQLSERVER_SA_PASSWORD_FILEpassword of sa from a secret file (empty volume)
EQLSERVER_DIALECTSswitch further dialects on: mysql,firebird,sqlanywhere,informix,ads,access,ase or all
EQLSERVER_DATABASEname of the application database (empty volume)
EQLSERVER_SET_<key>any key of the configuration file

Publish ports with 127.0.0.1: when they are only needed locally: Docker bypasses the rules of ufw and firewalld.

Differences from Windows

  • The importers for SQL Server, SQL Anywhere, Informix, Access and ADT tables are Windows programs; they run on a Windows computer against the Linux server. The Linux server imports xBase files (DBF) itself.
  • HTTPS tunnel and monitoring page run behind a reverse proxy (nginx, Caddy, Traefik) that owns port 443 and the certificate.
  • The replayer and the desktop tools exist only on Windows.

Troubleshooting

"Port is already in use"

The start script names the program that occupies the port. Either stop that program or enter a different port in eqlserver.config.json and restart.

Login fails

  • PostgreSQL clients: use login names in lowercase.
  • SSMS: set encryption to Optional or tick "Trust server certificate".
  • Forgotten password: starting with eqlserver.cmd <ports> <database> <user> <new password> sets it again.
  • Firebird: set the password once more after the Firebird listener has been switched on.

Not reachable from the LAN

The server runs, but other computers only get a timeout. Check in this order:

  1. Access modeeqlserverctl status shows "Access: other computers allowed" or "ONLY THIS COMPUTER". In the second case set "ListenAddresses": "*" in eqlserver.config.json and run eqlserverctl restart.
  2. Firewall rulesIn "Windows Defender Firewall with Advanced Security", inbound rules, the rules EQLServer Server (…\postgres.exe) and EQLServer pool (…) must be "Allow". A block rule for the program always wins, also over port rules you created yourself. The start script creates the rules when it runs once with administrator rights.
  3. Network profileIf the network connection is classified as "Public", some policies block inbound connections despite a rule. Set the network to "Private" in the Windows settings or check the policy.
  4. Address and portClients connect to the IP address shown in the start window ("connect with 192.168.178.61,1433"), not to localhost.

If only port 443 is reachable, use the tunnel.

The first T-SQL connection takes noticeably long

A new T-SQL connection costs about 0.2 seconds on Windows. Applications should keep connections open or use connection pooling (default with SqlClient, ODBC and FireDAC). The built-in connection pool takes care of the rest.

Where are the logs?

FileContents
eqlserver-server.logMessages of the database server
logs\service.logWindows service
logs\eqlbackup.logBackups
ERRORS\Error reports on compatibility gaps
Event Viewer › Application › source EQLServerMessages when running as a service