PowerShell for SQL Server Administration
2h 1mIntermediate2019-06-21
Authors

Denny Cherry
Owner and principal consultant of Denny Cherry & Associates Consulting
Course details
Since SQL Server database administrators are typically charged with managing multiple machines, PowerShell—which enables administrators to manage large numbers of servers—is an especially valuable tool to master. In this course, instructor Denny Cherry shows SQL Server administrators how to use PowerShell to automate server management. Discover how to work with PowerShell to create objects, populate and delete data from tables, and remote to other servers. Plus, see how to loop constructs in PowerShell and make data available for transfer to third-party platforms.
Learning objectives
When PowerShell can be particularly useful
Connecting to SQL Server from PowerShell
Closing connections
Creating objects in PowerShell
Creating tables, views, and procedures
Querying data in PowerShell
Using loops in PowerShell
Exporting CSV files and XML data
Learning objectives
When PowerShell can be particularly useful
Connecting to SQL Server from PowerShell
Closing connections
Creating objects in PowerShell
Creating tables, views, and procedures
Querying data in PowerShell
Using loops in PowerShell
Exporting CSV files and XML data
Skills covered
PowerShellIT AutomationDatabase AdministrationDatabase ManagementPersonaNetwork and System AdministrationMicrosoft
Concepts
0. Introduction
- 01 - Manage SQL servers with PowerShell
- 02 - What you should know
- 03 - Download tools
1. PowerShell in SQL Server
- 04 - PowerShell won't solve all problems
- 05 - When PowerShell is useful
- 06 - Differences between the two modules
- 07 - Open-source solutions
2. Connecting to SQL Server from PowerShell
- 08 - Declaring objects
- 09 - Connecting to SQL Server
- 10 - Parameters in PowerShell
- 11 - Closing connections
- 12 - Disposing connections
- 13 - Object reuse
3. Creating Objects in PowerShell
- 14 - Creating databases
- 15 - Creating tables
- 16 - Creating views
- 17 - Creating procedures
4. Querying Data in PowerShell
- 18 - Inserting data into tables
- 19 - Returning data from SQL Server
- 20 - Running stored procedures in PowerShell
5. Looping Through Servers in PowerShell
- 21 - Loops in PowerShell
- 22 - Storing servers for PowerShell
- 23 - Concepts of threading
- 24 - PowerShell threading commandlets
- 25 - Authentication and threading
- 26 - Piping between objects
- 27 - Exporting CSV files
- 28 - Importing CSV files
- 29 - Exporting XML data
- 30 - Importing XML data
6. PowerShell Remoting
- 31 - What is remoting
- 32 - Removing over HTTP ports
- 33 - Enabling remoting via PowerShell
- 34 - Enabling remoting via GPO
- 35 - Starting a remote session
- 36 - Ending a remote session
- 37 - Using alternate credentials for remoting
- 38 - Invoking a remote command
Conclusion
- 39 - Next steps