---
title: "Set up DataSync Agent to share to MS SQL Server or MS Azure SQL"
canonical: "https://docs.perspectium.com/space/Lithium/2326573/Set+up+DataSync+Agent+to+share+to+MS+SQL+Server+or+MS+Azure+SQL"
format: markdown
---
> Macro (html-bobswift)


<span style="color: #000000">You can configure your Perspectium DataSync Agent to share data from ServiceNow or Salesforce to a Microsoft SQL Server database or a Microsoft </span>[<span style="color: #000000">Azure SQL</span>](https://azure.microsoft.com/en-us/services/azure-sql/)<span style="color: #000000"> database by changing some additional </span>[<span style="color: #000000">configurations in your </span>](https://docs-perspectium.atlassian.net/wiki/display/latest/DataSync+Agent+configuration)**[<span style="color: #000000">agent.xml</span>](https://docs-perspectium.atlassian.net/wiki/display/latest/DataSync+Agent+configuration)**[<span style="color: #000000"> file</span>](https://docs-perspectium.atlassian.net/wiki/display/latest/DataSync+Agent+configuration)<span style="color: #000000">. Since Azure SQL is Microsoft's cloud database service of SQL Server, the DataSync Agent configurations are the same as configuring to connect to a SQL Server database you host.</span>

:info:<span style="color: #000000"> </span>**<u><span style="color: #000000">NOTE</span></u>****<span style="color: #000000">:</span>**<span style="color: #000000"> A DataSync Agent configured to share to a MS SQL Server database or a Microsoft Azure SQL Server database will create large fields (fields defined with a size of 251+ characters) with a searchable </span>**<span style="color: #000000">nvarchar(max) </span>**<span style="color: #000000">data type.</span>


## <span style="color: #000000">**Prerequisites**</span>

---

:warning:<span style="color: #000000"> First, you will need to </span>[<span style="color: #000000">install DataSync Agent</span>](https://docs-perspectium.atlassian.net/wiki/display/latest/Install+and+Configure+DataSync+Agent)<span style="color: #000000">.</span>

:warning:<span style="color: #000000"> You will also need to </span>[<span style="color: #000000">create a ServiceNow dynamic share/bulk share</span>](https://docs-perspectium.atlassian.net/wiki/spaces/Lithium/pages/2326799)<span style="color: #000000">.</span>

:warning: <span style="color: #000000">Make sure to </span>[<span style="color: #000000">stop running your DataSync Agent</span>](https://docs-perspectium.atlassian.net/wiki/display/latest/Start+or+stop+the+DataSync+Agent)<span style="color: #000000"> before making any Agent configuration changes.</span>

:warning: <span style="color: #000000">Finally, you will need to create a database in the server you choose, MS SQL Server or MS Azure SQL Server, that will store data replicated via the DataSync Agent.</span>

## <span style="color: #000000">**Procedure**</span>

<span style="color: #000000">To set up your DataSync Agent to share application data to a MS SQL Server database or MS Azure SQL Server database, follow these steps:</span>

---

> Macro (legacy-content)

> Macro (legacy-content)

> Macro (legacy-content)

> Macro (legacy-content)

> Macro (legacy-content)

> Macro (legacy-content)