Hi @Emily Davis
Yes, here are some common methods to achieve this:
SQL Server Agent Jobs:
You can create a SQL Server Agent job that runs a query and exports the results to a specific path and configure a schedule (daily, weekly) for that job.
Refer to this tech doc: Create a SQL Server Agent Job in SQL Server Management Studio (SSMS).
Integration Services (SSIS):
If you are interested in complex ETL processes like Extract, Transform, etc. It is suggested to create an SSIS package that runs a query and exports the data to a specific format (like CSV, Excel, etc.).
See this article for more details: Deploy and Schedule an SQL Server Integration Services SSIS Package Step by Step.
Reporting Services (SSRS):
If the data is reporting format, you may also consider using SSRS.
Reporting Services provides shared schedules and report-specific schedules to help you control the processing and distribution of reports.
Refer to this tech doc: Schedules in Reporting Services.
PowerShell:
You can also write a PowerShell script to query the SQL Server and export the results to a specific file format. This script can be scheduled using Windows Task Scheduler.
Exporting Data to CSV using SQL Query and PowerShell,
Run PowerShell Scripts on a Schedule with Task Scheduler.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".