# enableActivePartition {#enableactivepartition}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`enableActivePartition(db, activeDate, siteAlias)`

## Arguments {#arguments}

**db** is the handle of the historical database.

**activeDate** is the date of the active database.

**setAlias** is the node alias for the active database.

## Details {#details}

Establish a connection between the active database and the historical database.

## Examples {#examples}

```
histdb = database("C:\DolphinDBDemo\example\data\dbspace\historical-A\Trades2ndDomain")
activeNodeAlias = getNodeAlias()
activeDate = today()
enableActivePartition(histdb, activeDate, activeNodeAlias);
```

