Microsoft PowerShell and SQL Server: Introduction

SQL Server administrators and developers looking to understand the command line interface to Microsoft SQL Server

Prerequisite
None

Expected Duration
141 minutes

Description
The PowerShell environment is installed with SQL Server and is viewed as a primary method of configuration and management. This course covers the first steps required to manage SQL Server with PowerShell, SQL Management Objects, working with Windows Management Instrumentation, and handling errors.

Objective

Getting Started with SQL and PowerShell

  • start the course
  • recognize how PowerShell integrates directly within SQL Server by using preloaded modules and assemblies
  • identify and sort SQL Server services using PowerShell
  • establish a connection with a SQL Server database by calling a SqlConnection class

SQL Server Management Objects

  • load an SMO assembly into PowerShell
  • create a SQL Server .NET object that connects to and iterates through a SQL Server instance to view the different objects, methods, and properties associated with it
  • use the get-Member cmdlet to display the methods and properties associated with a database
  • script out SQL Server tables using SMO in PowerShell
  • back up and restore databases from within PowerShell using SMO and SQL Server cmdlets

Management and WMI

  • manage SQL Server services using cmdlets from within Microsoft’s Windows PowerShell
  • manage client network protocols with WMI using PowerShell cmdlets in Microsoft SQL Server
  • view and manage aliases using WMI in PowerShell
  • enable FILESTREAM for a server instance using WMI in PowerShell

Errors and Instances

  • pipe SQL Server Error Log messages through PowerShell
  • use advanced cmdlets to work with and read the error log in PowerShell
  • obtain information on multiple instances of a server using cmdlets in PowerShell
  • enable PowerShell remoting
  • handle errors using Microsoft PowerShell

Working with SQL PowerShell

  • restore all databases in an instance of SQL using Microsoft PowerShell
  • analyze disk space in a disk or file group using PowerShell
  • display results in grid view in PowerShell
  • recognize the differences in inputting assemblies in Windows PowerShell and SQL PowerShell
  • create SQL audits using PowerShell
  • configure the options of the Invoke Sqlcmd cmdlet in PowerShell

MONTHLY SUBSCRIPTION

$129/month
 

ANNUAL SUBSCRIPTION

$1295/year

Multi-license discounts available for Annual and Monthly subscriptions.