Sync SQL Server assets to Google Sheets every 5 minutes
Recipe ToolsMarketingDocument/FileSales EnablementDatabase
What it does
When the clock triggers every 5 minutes, this automation queries the dbo.Assets table in SQL Server. It creates a new Google Sheets spreadsheet and populates each row with asset records from the database.
Who it's for
Operations teams who need a live Google Sheets view of SQL Server assets without manual exports.
How teams use this
Export assets to a shared view
Run this automation to create a fresh Google Sheets file every 5 minutes so teams can view current assets without accessing SQL Server directly. The spreadsheet is shared and always up to date.
Track asset inventory over time
Use the spreadsheet to monitor which assets are added or removed from the dbo.Assets table. Each 5-minute sync captures the current state for comparison with previous snapshots.
Filter assets by status before syncing
Add a condition to the SQL Server query so only active assets are written to the spreadsheet. This keeps the view focused on assets currently in use.
Notify teams when sync completes
Include a step that posts the new spreadsheet link to a team channel so someone knows when each sync finishes. Only the notification step is added to the existing flow.
How it works
- Run on a 5-minute schedule. This automation starts every 5 minutes to keep the spreadsheet current with the latest asset data from SQL Server.
- Create a new spreadsheet in Google Sheets. A new Google Sheets spreadsheet is created to hold the asset records, with a header row that labels each column for the data.
- Fetch all rows from dbo.Assets in SQL Server. SQL Server returns all rows from the dbo.Assets table so each asset record can be written to the spreadsheet as a separate row.
- Add each asset as a row in Google Sheets. For each asset returned from SQL Server, a new row is created in Google Sheets with the asset details populated from the database.