# MSSQL

1\. Go to **Workflows** and click **Create Workflow** (Before creating a new workflow, you have to [create a resource](/acho-studio/resources/add-a-resource.md) first and then [import the resource to a project](/acho-studio/data-prep-projects/create-a-project.md)).

<figure><img src="/files/oLq8xBqR5KKZSSxxltXm" alt=""><figcaption></figcaption></figure>

2\. In Workflow, drag **MSSQL** from the right sidebar to the canvas.&#x20;

<figure><img src="/files/TiFSPe3RtnuMc548s6en" alt=""><figcaption></figcaption></figure>

3\. Configure your MSSQL destination. (Remember to white list Acho's IP address: **`35.239.14.244`**)

* Host
* Port
* Database
* Schema
* Username
* Password

![](/files/h4pZxSpighVgKUakW4vW)

4\. Once your MSSQL is set up successfully, the status will become <img src="/files/XUVjABlrtvBATkg8s3Nq" alt="" data-size="line"> . Your MSSQL database will be stored in **Existing Database**, so next time you can drag it to the Workflow directly without filling out credentials.&#x20;

<figure><img src="/files/JzBPW2RExIbE4XrK00rV" alt=""><figcaption></figcaption></figure>

5\. Connect the table to your MSSQL database.

<figure><img src="/files/ARJFmPJSmDJjs1UZzJhO" alt=""><figcaption></figcaption></figure>

6\. Choose the **replication method** and click **Save.** When you export data to MSSQL, Acho will create a new table in your MSSQL. When your project table is updated, your table in MSSQL will be updated as well. The replication method is to determine how to update your table in MSSQL.

* **Full Refresh:** Replace your MSSQL table with the new table.

<figure><img src="/files/zIArkvuZ9AAOcF1cWuW1" alt=""><figcaption></figcaption></figure>

7\. You can set up the **Data Sync** for your project table. Once your project table is updated, new data will be exported to your database automatically.&#x20;

<figure><img src="/files/jqbvIMp7pMLsmo7koMux" alt=""><figcaption></figcaption></figure>


---

# 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.acho.io/acho-studio/data-flow/export-data/connect-mssql-database.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.
