Sync CSV files from SFTP to SQL Server

File TransferDatabase

What it does

When a new or updated CSV file lands in a directory on the SFTP server, this automation reads the file. It upserts all rows into the dbo.big_table_demo table in SQL Server so the database stays synchronized with the latest file data.

Who it's for

Data and analytics teams who load CSV files from SFTP into SQL Server without manual uploads.

How teams use this

Keep a data warehouse current

Load CSV exports from a source system into SQL Server each time the file updates, so analysts always query the latest data without manual intervention.

Sync vendor files to the database

Route CSV files from a vendor SFTP folder into SQL Server so procurement and finance teams can access supplier data in their reporting tools.

Filter rows before loading

Add a condition to check each row and only upsert records that meet specific criteria, such as a status field or date range. This keeps the table clean and focused.

How it works

  1. Detect new or updated CSV file. Monitor a directory on the SFTP server and detect when a new CSV file arrives or an existing file is updated in that location.
  2. Upsert rows into SQL Server. Read the CSV file from SFTP and upsert all rows into the dbo.big_table_demo table in SQL Server so the database reflects the latest data.