# Azure SQL

Configure an Azure SQL database owned privately or by your organization as a writeback destination.

**Prerequisite:** Certain Lumel IP addresses need to be whitelisted in the Azure SQL firewall for the application to reach the configured server.

Detailed help instructions, whitelisting procedures, and other details are available on the Lumel application with links as shown below:

<figure><img src="/files/M1pMaWQvcQP35b6q336M" alt=""><figcaption><p>Azure SQL configuration through admin console</p></figcaption></figure>

The following details have to be entered:

* Connection Name: Name for your new connection
* Server details—Host name
* Port
* Database
* Schema
* Username
* Password
* Whether you want to use an encrypted connection (Y/N)
* Table Name
* Whether you want to enable temporary Staging Table (Y/N)
* Staging Table Name

<figure><img src="/files/wOj4To6slO3ATDwS3Eei" alt=""><figcaption><p>Adding Azure SQL destination from Plan sheet</p></figcaption></figure>

{% hint style="info" %}
To enhance the performance of inserts and updates in the destination database, enable the **Temporary Staging Table** option to leverage a temporary staging table during writeback. This is recommended for large payloads of size more than 50,000 records.
{% endhint %}


---

# 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.fabricplan.com/planning/data-writeback/destinations/azure-sql.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.
