[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'SQLDB' (#fcl)

# TSQLConnection.HostName

The name of the host computer where the database resides

## Declaration

Source position: sqldb.pp line 300

`published property TSQLConnection.HostName : string read FHostName write FHostName;`

## Description

HostName is the name of the host computer where the database server is listening for connection. An empty value means the local machine is used.

This property must be set prior to activating the connection. Changing it while the connection is active has no effect.

## See also

TSQLConnection.Role |  | Role in which the user is connecting to the database
TSQLConnection.Password |  | Password used when authenticating on the database server
TSQLConnection.UserName |  | The username for authentication on the database server
TSQLConnection.DatabaseName |  | The name of the database to which connection is required.
TSQLConnection.Charset |  | The character set to be used in this database

Documentation generated on: May 14 2021