Sync SQL Server data to SFTP on schedule

Recipe ToolsDatabaseData ParserFile Transfer

What it does

When a scheduled time arrives, this automation runs the dbo.get_property_list stored procedure in SQL Server. It formats the results as a CSV file and uploads it to an SFTP server so downstream systems can access the latest property data.

Who it's for

Data and analytics teams who need to export SQL Server data to SFTP on a regular schedule without manual intervention.

How teams use this

Export property data nightly

Run the stored procedure every night at midnight and upload the results to the server so the team has fresh data each morning. No manual export steps are needed.

Feed a data warehouse pipeline

Set the schedule to match your warehouse load window and upload to a dedicated folder on the server. The same automation runs on your timeline without changing the core logic.

Filter properties by status before export

Add a condition to the stored procedure so only active properties are included in the CSV file. This requires modifying the dbo.get_property_list query to filter on a status column.

How it works

  1. Run on a specified interval. This automation starts at the scheduled time you set, such as daily or weekly, and begins the data export process.
  2. Execute the stored procedure. Run the dbo.get_property_list stored procedure in SQL Server to retrieve the property dataset for processing.
  3. Format results as CSV. Convert the property list from SQL Server into a CSV file format using the CSV Parser so it can be uploaded to the server.
  4. Upload file to server. Send the CSV file to your SFTP server so downstream systems and teams can access the latest property data immediately.