Course Details

Previous Page


Microsoft PowerShell and SQL Server: Introduction


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/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.

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

Prerequisites
None

Expected Duration (hours)
2.3

Lesson Objectives

Microsoft PowerShell and SQL Server: Introduction

  • 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
  • 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
  • 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
  • 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
  • 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
  • Course Number:
    mw_pssq_a01_it_enus