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

# Testing a Data Source connection

> Verify that a Data Source's credentials and network settings are correct before relying on it for report generation.

You can test the connectivity of any Data Source to verify that credentials and network settings are correct.

To test a connection:

<Steps>
  <Step>
    On the **Data Sources** page, find the card for the connection you want to test.
  </Step>

  <Step>
    Click the **Test Connection** button on the card.
  </Step>

  <Step>
    The status will change to **Connecting** while the test runs.
  </Step>

  <Step>
    After the test:

    * If the connection succeeds, the status changes to **Connected** and the latency is displayed (e.g., `Latency: 45ms`).
    * If it fails, the status changes to **Disconnected** and an error message is shown.
  </Step>
</Steps>

## Viewing the schema

***

When the connection is successful, you can view the database structure:

<Steps>
  <Step>
    Click the connection card to expand it.
  </Step>

  <Step>
    The schema section will load, displaying:

    * The total number of tables found.
    * Tables grouped by schema (for databases that support schemas).
    * Column names, types, and whether each column is a primary key or nullable.
  </Step>
</Steps>

<Tip>
  If no tables appear after expanding the card, run **Test Connection** to refresh the schema.
</Tip>
