Iron Maiden: the remaining six albums (2000-2021) ►

◄ Playing DVDs directly on an Android tablet in 2025

2025-11-02 📌 Export SQL queries to Excel workbook sheets with PowerShell

Tags All Tech Audit

A simple example script to take some parameters, ask where to save the output then run multiple SQL queries (in this case a result set then two extracts) and export the results into separate sheets of an Excel file. Assumes that the user's account has permissions for the database(s) and tables needed.

You can run the script as normal or via a shortcut such as:

"C:\Program Files\PowerShell\7\pwsh.exe" -NoExit -ExecutionPolicy Bypass -Command "./ScriptName.ps1"

💬 Comments are off, but you can use the mail form to contact or see the about page for social media links.