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

# Microsoft SQL Server

> Build apps with read and write access to a Microsoft SQL Server database

## Setting up Microsoft SQL Server

### 1. Add integration

Select **Microsoft SQL Server** from the **integrations page**.

### 2. Configure settings

Fill out the form with the following settings:

| Setting | Required | Description |
| - | - | - |
| Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
| Host | ✓ | Hostname or IP address to connect to |
| Port | ✓ | Port to use when connecting to Microsoft SQL Server |
| Database Name | ✓ | Name of database to connect to |
| Database Username | ✓ | Username to use to connect |
| Database Password | ✓ | Password for database username |
| Enable SSL | ✗ | Connect via SSL if selected |

### 3. Test and save

Click **Test Connection** to check that Prod AI can connect to the data source.

On Dedicated Cloud, allowlist your [Prod AI data plane IP addresses](https://docs.prod.ai/deployment/security/overview.md#ip-addresses).

After connecting successfully, click **Create** to save the integration.

### 4. Set data tags

Optionally, configure different data tags for [separate development environments](https://docs.prod.ai/development-lifecycle/build/data-tags.md).

**Microsoft SQL Server connected!**
You can now build
[apps](https://docs.prod.ai/coding-agents/apps.md) and [agents](https://docs.prod.ai/coding-agents/agents.md) with Microsoft SQL Server.

## Troubleshooting

Check out our guide on [common errors across database integrations](https://docs.prod.ai/integrations/troubleshooting/troubleshooting-databases.md), in addition to [common Microsoft SQL Server connection issues](https://docs.microsoft.com/en-us/troubleshoot/sql/connect/resolve-connectivity-errors-overview). If you are encountering an error that you don't see in the guide, or the provided steps are insufficient to resolve the error, please contact us at [support@prod.ai](mailto:support@prod.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.