# Fabric Warehouse

After navigating to the add destination page, the following details are required to add **Fabric Warehouse** as a writeback destination:

* SQL connection string
* Database name
* Schema name
* Client ID
* Client secret
* Table name

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FSb6VSypWGIe3xBHOw5Mi%2Fimage.png?alt=media&#x26;token=5e0f0b6c-99e8-414e-99bb-33965b13d3b0" alt=""><figcaption><p>Fabric warehouse</p></figcaption></figure>

#### Fetching the DB name and connection string

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FFz89LHlTsgPAlvNp9Qgi%2Fimage.png?alt=media&#x26;token=1121a943-658a-4264-97cb-563eb39ad2e4" alt=""><figcaption><p>DB name and connection string</p></figcaption></figure>

#### Fetching the Service Principal Client ID and Service Principal Client Secret

Refer to the highlighted fields in the screenshot below to get the Service Principal Client ID. Client Secret is obtained while creating the Service Principal Account.

{% hint style="info" %}
Ensure that this Service principal client ID has **Contributor** access to the workspace that is added.
{% endhint %}

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FUbWVFYS0Ag07vWekQwAw%2Fimage.png?alt=media&#x26;token=2246fe77-8985-44dc-b841-c41a9ccd1559" alt=""><figcaption><p>Fetching the service principal client ID</p></figcaption></figure>

#### Additional configuration for optimised insert

To perform bulk insert when there is large data, ensure these items are configured:

1\. Create a **"Workspace Identity"** and then add the **"Service Principal"** as an **"Authorized User"**.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FRmdvVv32EiVXzX6t2gnR%2Fimage.png?alt=media&#x26;token=2e23083c-4ca1-448c-afb3-b391bf949de5" alt=""><figcaption></figcaption></figure>

2\. Ensure that the **"Workspace Identity"** is whitelisted in the **"Resource Instance Rules"** of th&#x65;**"Storage Account"**.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fn0Wqw1O4X59gVAgljaqv%2Fimage.png?alt=media&#x26;token=80546e65-bad0-4dab-b4e5-f4e2a3be3e71" alt=""><figcaption></figcaption></figure>
