Sync CSV from Sftp to SQL Server USER_PROFILE
File TransferDatabaseMarketing
What it does
When a new or updated CSV file appears in a directory on the Sftp server, this automation reads the batch of rows. It inserts them into the USER_PROFILE table in SQL Server so the database stays current with the source file.
Who it's for
Data and analytics teams who need to keep SQL Server synchronized with CSV files on Sftp without manual uploads.
Apps used
How teams use this
Keep SQL Server current with Sftp files
Automatically insert CSV rows into USER_PROFILE whenever the source file updates on Sftp. The table stays synchronized without manual intervention or scheduled jobs.
Load employee data from HR exports
Route CSV files from an HR system on Sftp directly into the USER_PROFILE table in SQL Server. The same automation works for any CSV that matches the table schema.
Filter rows before inserting into the table
Add a condition to check each row in the CSV and only insert records that meet specific criteria, such as active status or department. This requires a filter step before the insert.
How it works
- Detect new or updated CSV file. Monitor a directory on the Sftp server for a new or updated CSV file that contains rows to insert into SQL Server.
- Insert batch into USER_PROFILE table. Read the CSV file from Sftp and insert the batch of rows into the dbo.USER_PROFILE table in SQL Server so the database reflects the latest data.