---
url: /flow/guide/scripting-reference/classes/data-definition/dbconcount.md
---

# DBConCount

## Declaration

`property DBConCount: integer;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
if Source.DBConCount >= 2 then
  Value := Source.DBCons[1].DBCon.Database; //the name of the database
end;
```

## Description

Returns the file name (including the full path) of the file this data definition is connected to. This property is read only. Do not set this property to another value during the map.
