Integrating SurveySparrow with Azure SQL Database

Harris

Harris

April 8, 2026

Azure SQL Database is Microsoft’s fully managed relational PaaS database service (built on SQL Server) that automatically scales, handles high availability, and securely stores structured transactional data for fast operational queries.

Unlike Azure Synapse Analytics (with which SurveySparrow also integrates), Azure SQL Database is purpose-built for real-time OLTP workloads and application data rather than large-scale data warehousing and advanced analytics.

SurveySparrow’s integration automatically sends your survey responses straight into your Azure SQL Database—no manual CSV exports, no spreadsheets, and no custom coding required. To allow specific responses, you can create conditional filters, including date filters. 

Once set up, every new response (or all your past responses) flows directly into a table you choose, exactly when you want it.

Some valuable use cases include:

  • CX teams can watch every new NPS or customer feedback response appear automatically in their Azure SQL database within minutes, powering real-time dashboards without any manual work.
  • Product managers can sync survey data on their existing schedule so customer feedback flows seamlessly into reports and product metrics, keeping everything in one central place.
  • During a product launch, product managers can see customer reactions land in Azure SQL almost instantly, allowing them to spot issues and make fast improvements based on live feedback.

In this article, we’ll walk you through connecting your SurveySparrow account to Azure SQL and setting up powerful response mappings from start to finish, specifically:

Connecting your SurveySparrow account to Azure SQL

1. Inside your SurveySparrow account, click on the settings icon.

Image

2. Scroll down the left panel in the settings page till you see the Apps and Integrations option, then click on it.

Image

3. Search for the Azure SQL integration using the search box (or scrolling through the integrations), then click on the toggle when you see it.

Image

4. Next, in the setup screen you’ll need to enter your Tenant ID.

Image

Note: To find the Tenant ID, go to your Azure account. Click on the hamburger menu in the left corner and select Microsoft Entra ID.

Image

Image

Inside the Overview section, you’ll see the Tenant ID. Hover over it and click on the copy icon.

Image

5. After entering the details back in SurveySparrow, click Connect.

Image

6. You will need to select a Microsoft account to complete authentication.

Image

Authorizing SQL database access

Before creating mappings, you need to run a script inside Azure SQL so that SurveySparrow can pass data. Follow these steps.

1. Inside the Azure Portal, search for Azure SQL Database and open it when it appears.

Image

2. Open the intended database by clicking on the name.

Image

3. Click on Query editor in the left hand panel.

Image

4. In the query editor, you’ll see a tab for Microsoft Entra. Click on Connect as…..

Image

5. Your database is now open in the Query editor. Click on New Query.

Image

6. Copy the script below in the query editor and click on Run.

CREATE USER [SurveySparrow - Azure SQL] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [SurveySparrow - Azure SQL];

-- Write access (required)

ALTER ROLE db_datawriter ADD MEMBER [SurveySparrow - Azure SQL];

-- DDL access for creating/altering tables (required if the integration creates tables)

ALTER ROLE db_ddladmin ADD MEMBER [SurveySparrow - Azure SQL];

Image

Creating response mappings

1. Open a survey and click on the Integrate/Configure tab.

Image

2. Search for the Azure SQL integration using the search box (or by scrolling through the integrations). When it appears, click on the toggle.

Image

3. When the integration setup screen opens, you must first connect the destination database. You must start by entering the server name and database name.

Image

Note: You can find both items inside your Azure account, search for Azure SQL Database and click on it under Services.

Image

Click on the database to which you want to push responses.

Image

You’ll see the Server name, hover over it and click on the copy icon.
Image

For the database name, copy it from the top.

Image

4. Once you’ve copied both details in the configuration screen, click on Connect.

Image

5. Click on the drop-down under Schema and choose from the options.

Image

6. Now you must select the table to which you want to push the survey data. But you can either choose an existing table from the dataset or create a new one. Click on the dropdown under Action to decide. Both actions have different flows. We’ll first start with an existing table.

Image

7. Next click on the drop-down button under Table and select from the options.

Image


8. By default, only new responses are imported. If you want to only import responses from a specific date, click on the toggle next to Response Import Settings.

Image

9. When you hover over the Specific Date option, a calendar will appear. Choose a date, then click on Apply.

Image

10. Click on Continue Mapping.

Image

11. Now in the Mapping section, you need to configure which response properties are going to Azure SQL. First you can set conditions to decide which type of response gets synced to Azure SQL. Click on Set Conditions.

Image

12. In the condition setting modal, you can set a conditional logic for the conditions: either any or all. The default setting is any, but if you’d like to change the logic, click on the drop-down next to it.
Image

13. To add conditions, click on Add Group.

Image

14. Choose a category of data from the drop-down menu to which the condition must apply. For this instance, let’s go with a question.

Image

15. Choose a particular item from that category, in this instance a question.

Image

16. Click on Choose Condition to start defining the condition.

Image

17. A list of comparison operators appears, choose one.

Image

18. Input a value for the data to be tested against and then click Apply.

Image

19. You can turn a condition into a group of conditions by hovering near it and then clicking on the plus icon that appears to the right. Repeat the same steps as above to create another condition.

Image

20. Within a group of conditions you can set conditional logic: and/or. The default is and, but if you’d like to change it, click on the drop-down.

Image

21. Click on Add Group to add more conditions/condition groups. When you’re done, click Save.

Image

22. The first step of creating a mapping is to select a property type. The default property type is a question, but you can change it by clicking on the drop-down and choosing from the options.

Image

23. Next, you must choose a particular item of that property type that you’ve already created for the survey. Click on the drop-down menu under SurveySparrow Field and choose from the options.

Image

24. Select a field from the Azure SQL table where the data property should be mapped.

Image

25. If a particular response has no data for the chosen property, the Azure SQL field will remain empty. But you can choose to fill in a default value that will be filled in as a substitute for such situations.

Image

26. To add more mapping fields, click on New mapping field.

Image

27. When you’re done, click on Save Mapping.

Image

28. Create a name for the mapping, then click on Save Mapping.

Image

29. After the mapping is saved, you’ll be taken to a screen where you can access all saved mappings. To review the mapping configuration, click on the mapping.

Image

30. The mapping tab expands to show you its settings. If you’d like to modify it, click on the ‘Edit….’ button.

Image

31. To pause the mapping, click on the green toggle button.

Image

32. To delete the mapping, click on the vertical three-dot icon, then click on Delete.

Image

33. Click on Confirm to proceed.

Image

34. Click on New Mapping to add another mapping.

Image

35. Now let’s explore the other set of steps to create a new table for mappings. Once you’re selected Create New Table as your action, enter a table name and click on Continue Mapping.

Image

36. In the mapping section, the default option is to send all the response data. You can see all the response properties and their quantities. But if you want to be selective, click the button next to Send Selected data.

Image

37. You will be shown a series of tabs for each response property. Each tab will have a list of items for that particular property. Click on the checkboxes of the items you want to import to Azure SQL. Navigate through the respective tabs and select the ones you want. You can also use the search box to find items.

Image

38. When you’re done, click on Save Mapping.

Image

39. Create a name for the mapping and click on Save Mapping.

Image

You’re now ready to integrate SurveySparrow and Azure SQL. You can automatically and securely push every survey response directly into your chosen table in real time — eliminating manual exports, spreadsheets, and custom coding.

With flexible conditional filters and support for both new and historical responses, the integration gives you a seamless, scalable way to store and analyze structured survey data alongside your other business information.

Start leveraging the power of automated data flow today and turn your survey insights into actionable intelligence instantly.

Feel free to reach out to our community, if you have any questions!



Powered By SparrowDesk