Have a personal or library account? Click to login
SQL Server 2014 with Powershell v5 Cookbook Cover

SQL Server 2014 with Powershell v5 Cookbook

Over 150 real-world recipes to simplify database management, automate repetitive tasks, and enhance your productivity

Paid access
|Sep 2025
Product purchase options

Key Features

    Book Description

    PowerShell can be leveraged when automating and streamlining SQL Server tasks. PowerShell comes with a rich set of cmdlets, and integrates tightly with the .NET framework. Its scripting capabilities are robust and flexible, allowing you to simplify automation and integration across different Microsoft applications and components.
    The book starts with an introduction to the new features in SQL Server 2014 and PowerShell v5 and the installation of SQL Server. You will learn about basic SQL Server administration tasks and then get to know about some security-related topics such as the authentication mode and assigning permissions. Moving on, you will explore different methods to back up and restore your databases and perform advanced administration tasks such as working with Policies, Filetables, and SQL audits. The next part of the book covers more advanced HADR tasks such as log shipping and data mirroring, and then shows you how to develop your server to work with BLOB, XML, and JSON.
    Following on from that, you will learn about SQL Server's BI stack, which includes SSRS reports, the SSIS package, and the SSAS cmdlet and database. Snippets not specific to SQL Server will help you perform tasks quickly on SQL servers. Towards the end of the book, you will find some useful information, which includes a PowerShell tutorial for novice users, some commonly-used PowerShell and SQL Server syntax, and a few online resources. Finally, you will create your own SQL Server Sandbox VMs. All these concepts will help you to efficiently manage your administration tasks.

    What you will learn

    • Explore database objects and execute queries on multiple servers
    • Manage and monitor the running of SQL Server services and accounts
    • Back up and restore databases
    • Create an inventory of database properties and server configuration settings
    • Maintain permissions and security for users
    • Work with CLR assemblies, XML, and BLOB objects in SQL
    • Manage and deploy SSIS packages and SSRS reports

    Who this book is for

    If you are a SQL Server database professional (DBA, developer, or BI developer) who wants to use PowerShell to automate, integrate, and simplify database tasks, this books is for you. Prior knowledge of scripting would be helpful, but it is not necessary.

    Table of Contents

    1. Getting Started with SQL Server and PowerShell
    2. SQL Server and PowerShell Basic Tasks
    3. Basic Administration
    4. Security
    5. Backup and Restore
    6. Advanced Administration
    7. Audit & Policies
    8. High Availability
    9. SQL Server Development
    10. Business Intelligence
    11. Non SQL Server Specific but All Around Helpful Snippets
    12. Appendix A: PowerShell Primer
    13. Appendix B:Creating SQL Server Sandbox VMs
    https://github.com/packtpublishing/sql-server-2014-with-powershell-v5-cookbook
    PDF ISBN: 978-1-78528-361-1
    Publisher: Packt Publishing Limited
    Copyright owner: © 2015 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 760