Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

site.ini [ODBCSettings]

The settings of [ODBCSettings] in site.ini: Dialect, Driver, DataSourceName, ConnectionString, Layer

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/ODBCSettings.md

On this page

site.ini [ODBCSettings]

The block [ODBCSettings] of settings/site.ini, with 5 setting(s).

Any database through ODBC (DatabaseImplementation=odbc, expODBCDB): Server, Port, User, Password and Database come
from [DatabaseSettings]; the SQL the driver writes itself follows the dialect. Meant for data table connections
and engines without a driver of their own; a site runs on the native drivers.

Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/site.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in an extension (read when the extension is active).

Dialect

sqlserver, postgresql, mysql (MySQL and MariaDB), sqlite, oracle, msaccess or generic

Default: generic.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[ODBCSettings]
Dialect=generic
*/ ?>

Driver

The ODBC driver's name (odbcinst.ini on Linux, the ODBC administrator on Windows); empty: the dialect's usual one
(ODBC Driver 18 for SQL Server, PostgreSQL Unicode, MariaDB Unicode, SQLite3 ...)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[ODBCSettings]
Driver=
*/ ?>

DataSourceName

A data source name of odbc.ini instead of Driver and the server settings

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[ODBCSettings]
DataSourceName=
*/ ?>

ConnectionString

More keyword=value pairs, ; separated, e.g. Encrypt=yes;TrustServerCertificate=yes

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[ODBCSettings]
ConnectionString=
*/ ?>

Layer

auto (PDO_ODBC first), pdo_odbc, or odbc (PHP's odbc extension)

Default: auto.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[ODBCSettings]
Layer=auto
*/ ?>

Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x