# Mssql

Churned integrates with MSSQL to access customer data directly from your database, enabling real-time analysis and engagement tracking.

How to connect MSSQL to Churned.io\
Log in to the Churned platform and go to the “Integrations” section. Click on “New Integration” and select MSSQL from the list.

You will be prompted to enter the following credentials:

Required Credentials

1. host – The hostname or IP address of your MSSQL server.
2. port – The port used by the MSSQL service (default: 1433).
3. username – The username for accessing the MSSQL database.
4. password – The password for the provided username.
5. database – The name of the MSSQL database you want to connect to.

Here’s how you can obtain these credentials:

host and port

* Ask your IT or database admin for the hostname or IP where MSSQL is hosted.
* The default MSSQL port is 1433, unless configured otherwise.

username & password

* These credentials should be created in your SQL Server Management Studio (SSMS) or requested from your database administrator.
* Make sure the user has read access to the tables you want to sync with Churned.

database

* Use the name of the specific database in MSSQL that contains your customer data.

Input the Credentials\
Enter the retrieved credentials into the Churned integration form:

* host: MSSQL server address.
* port: Usually 1433 unless changed.
* username: SQL user with appropriate access.
* password: Password for the SQL user.
* database: Name of your customer data databas

Click Save and test the connection to ensure everything is working correctly.

Once connected, notify the Churned team to synchronize data.

Helpful Links

* [Microsoft SQL Server Documentation](https://learn.microsoft.com/en-us/sql/sql-server/)
* [SQL Server Authentication Overview](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/authentication-mode)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.churned.io/churned-docs/integrations/mssql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
