Skip to content
Scheduled SQL exports

Schedule the SQL exports your team runs by hand.

The reconciliation CSV every Monday at 8:00. The finance Excel every Friday. The orders-stuck list every morning. Save the SQL once. Pick a frequency. Choose CSV or Excel. Send to email or Slack. Replace the calendar reminder.

Schedule configuration with frequency, format, and Slack delivery destination, plus run history

Why teams move off the manual workflow

SQL Server Agent jobs and bcp scripts work, until they do not.

The classic stack is a SQL Server Agent job that runs bcp, writes a CSV, and Database Mail attaches it. Or a Linux cron with sqlcmd, awk, and msmtp. Both work. Both are owned by one person who does not want to touch them.

From a saved query

A schedule starts from a query in the library. Variables resolve at run time using the schedule defaults.

Hourly, daily, weekly

Pick a cadence and a timezone. Active or inactive toggle. Disable a schedule without losing its history.

CSV or Excel

CSV when the consumer is another script. Excel when the consumer is a finance team that wants to filter columns.

Email or Slack

Multiple recipients per email. Incoming webhook for Slack. Delivery includes a secure download link for the generated file.

Run history

Every run logged with status, duration, row count, delivery outcome. Failures surfaced in the workspace.

Read-oriented through the agent

Same trust boundary as ad hoc queries. Use a read-only role, reject DML and DDL before dispatch, and enforce statement timeouts in the agent.

Patterns we see in production

Concrete recurring extracts.

Daily 7:00

Failed transactions yesterday

CSV to operations Slack channel.

Daily 9:00

Customers with missing documents

Excel emailed to the back-office distribution list.

Daily 6:00

Orders stuck in processing

Slack message with a download link for triage.

Weekly Mon 8:00

Finance reconciliation

Excel to the finance team. The job that used to be a calendar reminder.

Weekly

Null values on critical fields

Data quality probe sent to the platform channel.

Weekly

Duplicate business keys check

CSV to the data team mailbox for review.

Related guides

Deep dives for scheduled SQL export workflows.

FAQ

Scheduled SQL exports to CSV and Excel via email or Slack

Can the schedule send to multiple destinations? +

Create two schedules with the same query, pointing to two different destinations: one email channel and one Slack channel.

How are timezones handled? +

Each schedule has its own timezone. The system runs in UTC internally; the cadence respects the configured timezone for human-friendly times like 8:00 local.

What is the row limit on the export? +

Same caps as ad hoc queries, scaled per plan. Pro caps at 10,000 rows or 50 MB per export. Enterprise limits are handled case by case.

Will this replace our reporting tool? +

No. This is operational SQL. There are no dashboards, no charts, no aggregation magic. The output is the row set the SQL produced. The destination is your existing workflow.

Stop running it by hand

Save the first manual extract you wish you did not have to run.

Two minutes from save to schedule. The first delivery sends a secure download link to Slack or the inbox at the next slot.