---
url: /flow/guide/scripting-reference/classes/db-connection/dbcon.hostname.md
---

# DBCon.Hostname

## Declaration

`property Hostname : String;`

### Example

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

## Description

Returns the host name configured on the DB Connection
