Sync SQL Server data to Amazon S3 every 15 minutes
Recipe ToolsMarketingDatabaseDeveloper Tool
What it does
When the clock triggers every 15 minutes, this automation runs custom SQL in SQL Server to fetch data. It exports the query result as a CSV file to Amazon S3 so the data stays in sync across systems.
Who it's for
Data and analytics teams who need to keep SQL Server data current in Amazon S3 without manual exports.
How teams use this
Keep Amazon S3 data current from SQL Server
Run the custom SQL query every 15 minutes and export the result as CSV to Amazon S3. The data stays fresh without manual intervention or opening SQL Server.
Sync to a different SQL Server table
Point the automation to a different source table or query in SQL Server. The export schedule and Amazon S3 destination stay the same.
Add a filter to the exported data
Modify the custom SQL query to include a where clause that filters rows by date or status. Only the matching records are exported to Amazon S3.
Send a notification when export finishes
Add a step that sends a message to a Slack channel or email when the CSV export completes. The team knows the sync succeeded without checking Amazon S3.
How it works
- Start on a 15-minute schedule. The automation starts every 15 minutes so data syncs regularly throughout the day without manual intervention.
- Run custom SQL in SQL Server. Execute a custom SQL query in SQL Server to fetch the data that needs to be exported to Amazon S3.
- Create a presigned link in Amazon S3. Generate a presigned link in Amazon S3 so the CSV file can be accessed securely without exposing credentials.
- Export result as CSV to MySQL. Export the SQL Server query result as a CSV file and upload it to Amazon S3 for storage and retrieval.
- Upsert batch in SQL Server. Insert or update a batch of rows in the dbo.sample_a table in SQL Server to keep the source data current.