---
url: >-
  /statelake/scripting-reference/classes/db-connection-class-tflodbcon/dbcon.hostname.md
---

# DBCon.Hostname

Returns the host name configured on the **DB Connection**.

**Declaration**: property Hostname : String;

An example.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Source.DBCons[0].DBCon.Hostname;
end;
```
