Use PowerShell & dbatools to Manage your SQL Server Environment

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

11 CONFIGURING AND MANAGING SHARED FOLDER SECURITY Chapter 8.
Introduction to MySQL Administration.  Server startup and shutdown ◦ How to manually start and stop it from the command line ◦ How to arrange an automated.
Lower costs and improve predictability Automation Enable service owners to focus on work that adds business value Reduce error-prone manual activities.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Module 13 Automating SQL Server 2008 R2 Management.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.
6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation form at the end of the day in the Registration.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.
SQL Server DBA Online TrainingSQL Server DBA Online Training.
SQL Server Management Strategies
Consulting Services JobScheduler Architecture Decision Template
Tips for SQL Server Performance and Resiliency
Database Tricks And Treats on Managing SQL Server
Shared Services with Spotfire
Lead SQL BankofAmerica Blog: SQLHarry.com
Cloud BI with Azure Analysis Services
Consulting Services JobScheduler Architecture Decision Template
Common SQL Server Mistakes and How to Avoid Them
Planning an Effective Upgrade from SQL Server 2008
Helpdesk to DBA in 60 Tips & Tricks for the new DBA
Installation and database instance essentials
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
Tips for SQL Server Performance and Resiliency
Universal SQL Installations Framework (Script review and Demo)
dbatools! The reason to finally start learning and using Powershell
dbachecks! DBA Checklists: Reliable, Repeatable, & Automated
Administrating SSRS without boring web based clicks!
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Migrating your SQL Server Instance
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
dbatools - PowerShell and SQL Server Working Together
Unit testing for your database infrastructure
PowerShell for Data Professionals
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
dbatools! The reason to finally start learning and using Powershell
How to Perform A Health Check By Edward Roepe Perimeter DBA, LLC
Reliable, Repeatable, Configurable & Automated Validation with
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell for the DBA: Why I love my inner pig-dog
AlwaysOn Availability Groups
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
Gold Sponsors.
dbatools! The reason to finally start learning and using Powershell
Michael Wall Senior DBA, Great Western Malting
Managing and monitoring SQL Server on Linux from the command line
Michelle Haarhues Keeping up with SSMS.
Using Dbatools to Automate Database Migrations
What it is and why you should use it
SQL AlwaysOn Availability Groups
The DBA Quit and now you’re it:
Life Hacks: dbatools Edition
Presentation transcript:

Use PowerShell & dbatools to Manage your SQL Server Environment

Thank you Sponsors

About Me - Garry Bargsley 20+ years in the IT related industry with 10+ years focused on database platforms. I have worked for various companies in the education, retail, medical, and fintech industries. My current focus is on database automation using PowerShell. Current contributor on the dbatools team. gbargsley@gmail.com @gbargsley blog.garrybargsley.com

Getting Started Resources dbatools: dbatools.io/getting-started PowerShell: Manning Publication Learn Windows PowerShell in a Month of Lunches Leanpub PowerShell 101

Support SQL Server 2000 – 2017 * Express – Enterprise Edition Clustered and stand-alone instances Windows and SQL authentication Default and named instances Multiple instances on one server

System Requirements Minimum Client PowerShell v3 Server SQL Server 2000 Remoting enabled for Windows commands

Installing dbatools PowerShell Gallery Install-Module dbatools GitHub Invoke-Expression (Invoke-WebRequest dbatools.io/in) Offline installer dbatools.io/offline

Importing dbatools

Find a Command in dbatools From the Web https://dbatools.io/commands PowerShell

Max Memory Commands Get-DbaMaxMemory Set-DbaMaxMemory Test-DbaMaxMemory Get-DbaMaxMemory Set-DbaMaxMemory Test-DbaMaxMemory

Sp_Configure Commands Copy-DbaSpConfigure Export-DbaSpConfigure Get-DbaSpConfigure Import-DbaSpConfigure Set-DbaSpConfigure Copy-DbaSpConfigure Export-DbaSpConfigure Get-DbaSpConfigure Import-DbaSpConfigure Set-DbaSpConfigure

TempDb Configuration Commands: Set-DbaTempDbConfiguration Test-DbaTempDbConfiguration Set-DbaTempDbConfiguration Tetst-DbaTempDbConfiguration

Startup Parameter Commands: Get-DbaStartupParameter Set-DbaStartupParameter Get-DbaStartupParameter Set-DbaStartupParameter

Orphan File and User Commands: Find-DbaOrphanFile Get-DbaOrphanUser Remove-DbaOrphanUser Repair-DbaOrphanUser Find-DbaOrphanFile

Sql Build Commands: Get-DbaSqlBuildReference Test-DbaSqlBuild sqlcollaborative.github.io/builds

Agent Job Commands: Copy-DbaAgentJob Find-DbaAgentJob Get-DbaAgentJob New-DbaAgentJob Remove-DbaAgentJob Set-DbaAgentJob Start-DbaAgentJob Stop-DbaAgentJob Copy-DbaAgentJob Find-DbaAgentJob Get-DbaAgentJob New-DbaAgentJob Remove-DbaAgentJob Set-DbaAgentJob Start-DbaAgentJob Stop-DbaAgentJob

3rd Party DBA Tools Install Ola Hallengrens Install sp_WhoIsActive Industry utilized Backup, Integrity Check and Index Maintenance utility Install sp_WhoIsActive Industry standard sp_who2 replacement and troubleshooting tool Install Brent Ozar First Responder Kit Popular set of tools that assist with performance troubleshooting

- Demo -

Monitoring !! - Example -

Alerting !! - Example -

Join the Slack Channel Invite yourself to Slack Join #dbatools dbatools.io/slack Join #dbatools

Questions?

Thank You

gbargsley@gmail.com @gbargsley blog.garrybargsley.com Slides / Demo Script: github.com/gbargsley/SQLSaturdayPhoenix