> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable Business Process Reporting

> Enable Business Process Reporting by setting EnableBatchRoutingStatistic in dbo.Settings and the tenant Flags bit to record batch routing data.

By default, Business Process Reporting is disabled. Enable it globally first, and then enable it for each tenant where you want to collect data.

<Steps>
  <Step title="Enable the feature globally">
    Set the **EnableBatchRoutingStatistic** field to `true` in the **dbo.Settings** database table.
  </Step>

  <Step title="Enable data collection for each tenant">
    Set the third bit in the **Flags** field in the **dbo.Tenant** table. To enable data collection for all tenants in MS SQL, use the following command:

    ```sql theme={null}
    Update Tenant set Flags = Flags | 4
    ```
  </Step>
</Steps>

The **Flags** field can enable other features too. For example, this MS SQL command enables several features at once:

```sql theme={null}
Update Tenant set Flags = Flags | 4 | 2 | 1
```

When Business Process Reporting is enabled, changes made at each stage for every batch in the tenant are recorded in the **dbo.BatchRouting** table, and the current batch states are reflected in the **dbo.BatchState** table.
