About 618,000 results
Open links in new tab
  1. Export SQL View to CSV Using SQL Server Agent

    Mar 16, 2015 · $Query = @" SELECT * FROM [HYDRO].[dbo].[HWS_SALES_DATA_SEVEN_DAY_VIEW] "@ Invoke-SQLQuery -Instance …

  2. Create a Job for exporting a SQL Server view into Excel on a …

    Mar 21, 2017 · SQL Server Agent Jobs; Powershell; Export Data Wizard/SSIS package; The idea is to create a job with as a first step, a Powershell script that checks if a folder exists and if not, …

  3. Get-SqlAgentJob (SQLServer) - SQL Server PowerShell

    The Get-SqlAgentJob cmdlet gets a SQL Agent Job object for each job that is present in the target instance of SQL Agent. If the name of the job is provided, the cmdlet gets only this …

    Missing:

    • Export

    Must include:

  4. sql server - Export SQL Agent jobs with steps and scripts

    I recently saw some kind of export of SQL jobs configured under SQL Server Agent that I would like to achieve as well. Unfortunately I don't have any trace to author of that report to ask …

  5. How to Run a PowerShell Script with SQL Server Agent or Task …

    Mar 15, 2023 · In this article, we will explore how to automate the execution of PowerShell scripts using Windows Task Scheduler and SQL Server Agent. I will be using a very simple test …

  6. Export to CSV using scheduled job SQL Agent Management Studio

    May 16, 2017 · I'm trying to create a SQL agent job which automatically runs the below query on a daily basis and generates a CSV file which is stored on C:\test.csv and also emailed to people. …

  7. Simplest way to (automatically) output query results to csv

    Apr 11, 2019 · In Powershell - you can do something like this: PS> $results = Invoke-SqlCmd -ServerName yourServer -Database yourDatabase -Query "your extract query" PS> $results | …

  8. Create a monthly job to export from SQL Server 2014 to Excel

    Jun 7, 2016 · We have a developer that monthly, runs a query 6 times (changing the year from 2010, 2011 etc.). Then, he copies and pastes the results into an Excel spreadsheet. I'm having …

  9. generating sql query result to excel - Spiceworks Community

    Jan 6, 2017 · I just run a saved query on my SQL server running a scheduled PS script that outputs to a CSV. Look at Invoke-Sqlcmd. Is it running as the SQL Server Agent?

  10. Create a PowerShell Script Job Step | Microsoft Learn

    Feb 13, 2025 · This topic describes how to create and define a SQL Server Agent job step that executes a PowerShell script in SQL Server by using SQL Server Management Studio or …