comp • gb.db • _connection • host

_Connection.Host (gb.db)

Property Host As String

Returns or sets the host where the database server resides.

This host can be a machine name, or an IP address. The default host is localhost.

For SQLite the host name is the home path for the database using this property.

For MySql/MariaDB the host name can contain the path to a socket file. Then the string has to start with a slash "/".

For ODBC the host name are the DSN name definition, if has semicolons at least one, it will assume the property holds a ConnStr.

See also