You can use the VERSION statement to display the versions of the general MaxDB runtime environment and the precompiler runtime environment.
EXEC SQL VERSION <runtime_version>, <precompiler_version>;
You can specify <runtime_version> and <precompiler_version> as host variables with the data type char and a length of 40 bytes.