Sync SurveyMonkey course evaluations to SQL Server

Recipe ToolsMarketingDocument/FileDatabaseUtilities

What it does

When the scheduled time arrives, this automation downloads course evaluation survey responses from an on-premises file. It transforms them into a batch list and inserts each row into the SQL Server database, stopping and sending an email if an error occurs.

Who it's for

Data and analytics teams who need to load survey data into SQL Server on a regular schedule without manual file handling.

How teams use this

Load survey responses into the data warehouse

Run the sync every 5 minutes so course evaluation data flows from the survey tool into SQL Server continuously. The team can query fresh results anytime without waiting for manual uploads.

Alert the team when data load fails

When an insert error occurs, the automation sends an email so the data team knows to investigate the issue. No bad rows get into the database.

Extend sync to include additional survey fields

Add more columns to the batch list transformation so extra survey questions are captured and stored in SQL Server alongside the core evaluation data.

Retarget the sync for a different survey source

Point the file download step to a different on-premises location so another survey tool's responses flow into the same SQL Server table with no workflow changes.

How it works

  1. Run on a set schedule. The automation starts every 5 minutes to check for new survey data and sync it to the database.
  2. Download the survey file. Retrieve the course evaluation survey file from the on-premises file system using Onprem Files so the responses are ready to process.
  3. Convert file to a batch list. Transform the CSV file into a structured batch list with Workato Smart List so each survey response becomes a separate row for database insertion.
  4. Insert rows into SQL Server. Loop through each row in the batch and insert it into the dbo.SMStuCourseEvalSurvey table in Mssql. If an error occurs, stop and send an email alert.