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

# Connect Microsoft SQL to the Knowledge Base

> Connect to SQL Server databases to make your data accessible to AI agents.

With the Microsoft SQL connector, you can connect your SQL Server databases directly to the Knowledge Base. Once connected, Odin AI Platform indexes the tables you specify, making your database content searchable and accessible to your AI agents for grounded, data-driven responses.

## Connecting to Microsoft SQL

<Steps>
  <Step title="Open Project Settings">
    In your Odin AI Platform project, navigate to **Settings** in the sidebar.
  </Step>

  <Step title="Go to Connections">
    Select the **Connections** tab and find the **Microsoft SQL** tile under **Databases**.
  </Step>

  <Step title="Open the Microsoft SQL popup">
    Click the **Microsoft SQL** tile. A popup appears with the option to connect to SQL Server databases. Click **+ Add Connection**.
  </Step>

  <Step title="Fill in the connection form">
    Enter the following details:

    **Server**

    | Field               | Required | Description                                                       |
    | ------------------- | -------- | ----------------------------------------------------------------- |
    | **Connection Name** | Yes      | A display name for this connection (e.g. `My MsSQL Connection`).  |
    | **Host**            | Yes      | The hostname or IP address of your SQL Server (e.g. `localhost`). |
    | **Port**            | Yes      | The port your SQL Server is listening on. Default is `3306`.      |

    **Authentication**

    | Field        | Required | Description                           |
    | ------------ | -------- | ------------------------------------- |
    | **Username** | Yes      | The SQL Server user (e.g. `root`).    |
    | **Password** | Yes      | The password for the SQL Server user. |

    **Database**

    | Field                   | Required | Description                                                             |
    | ----------------------- | -------- | ----------------------------------------------------------------------- |
    | **Database**            | Yes      | The name of the database to connect to (e.g. `mydb`).                   |
    | **Schema**              | Yes      | The schema to use (e.g. `dbo`).                                         |
    | **Tables**              | Yes      | The tables to index. Enter each table name separated by a comma.        |
    | **Always Trust Server** | No       | Enable this toggle to bypass SSL certificate validation for the server. |
  </Step>

  <Step title="Save the connection">
    Click **Save**. Odin AI Platform will authenticate using the details provided. If successful, the **Microsoft SQL** tile on the Connections page will display a green dot and a count of your active Microsoft SQL connections.
  </Step>
</Steps>

<Check>You're now ready to use your Microsoft SQL data in the Knowledge Base!</Check>
