Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

External SQL Statements

Statements for connecting to and querying external databases (PostgreSQL, Oracle, SQL Server). Credentials are isolated from session output and logs – the DSN is never displayed after the initial connection.

External SQL connections are independent of the Mendix project connection. You can have multiple external database connections open simultaneously, each identified by an alias.

StatementDescription
SQL CONNECTOpen a connection to an external database
SQL DISCONNECTClose an external database connection
SQL (query)Execute SQL queries and schema discovery commands
SQL GENERATE CONNECTORGenerate Database Connector MDL from an external schema
IMPORT FROMImport data from an external database into a Mendix app database