---
url: >-
  /statelake/scripting-reference/classes/data-definition-class-tflodatasource/tflodatasource.dbcons.md
---

# TFloDataSource.DBCons

This is an array which returns a reference to the specified **DB Connection** link object, allowing you to then use the properties of the **DB Connection** object.

**DB Connections** are a zero (0) based array, therefore zero (0) is the first indexed **DB Connection**, one (1) the second, and so forth.

To access the actual **DB Connection** object, you need to use the .DBCon property of the link object, as shown below. More information can be found at [DB Connection Class (DBCon)](/statelake/scripting-reference/classes/db-connection-class-tflodbcon/).

**Declaration**: property DBCons\[index] : TFloDBCon;

The following example returns the database name.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
 //Returns the name of the database
  Value := Source.DBCons[0].DBCon.Database;
end;
```
