This repository contains PowerShell scripts for extracting key SQL Server components such as Stored Procedures and SSIS Packages. These scripts help automate database management tasks and facilitate easy backups.
🔹 Script: ExportProcedures.ps1
🔹 Documentation: ExportProcedures.md
This script retrieves all stored procedures from a specified SQL Server database and saves them as .sql files.
🔹 Script: ExportSSIS.ps1
🔹 Documentation: ExportSSIS.md
This script connects to the SSISDB catalog in SQL Server and exports all SSIS packages from a specified folder into .dtsx files.
🔹 Script: ExportProcedures.sql
🔹 Documentation: ExportProceduresSQL.md
- Ensure PowerShell is installed on your system.
- Clone this repository:
git clone https://github.com/lovescott/SQL-Export-Scripts.git cd SQL-Export-Scripts
- Follow the setup instructions in each script’s documentation:
- SQL Server Management Studio (SSMS) (optional, for testing)
- PowerShell 5.1+ (or PowerShell Core)
- SQL Server with SSISDB enabled (for SSIS exports)
- SQLCMD Utility (for running SQL queries in PowerShell)
This project is licensed under the MIT License – feel free to use and modify.
Contributions are welcome! If you find a bug or want to add improvements, submit a pull request.
GitHub: lovescott
Email: scott.love@databricks.com