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.
ARIE D. JONES (AJ) PRINCIPAL TECHNOLOGY MANAGER SQL Server for the Oracle DBA Sept 16 th 2009.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Media Partners.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Appendix A Starting Out with Windows PowerShell™ 2.0.
CCAT Troubleshooting Training XenApp April 2012 Citrix Consulting Architecture Team.
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
Chris Wright Senior Systems Engineer, Lucity MOVING TO ONE DATABASE FOR SQL SERVER.
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.
SQL Server Management Strategies
Consulting Services JobScheduler Architecture Decision Template
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
Database Tricks And Treats on Managing SQL Server
Lead SQL BankofAmerica Blog: SQLHarry.com
Cloud BI with Azure Analysis Services
Consulting Services JobScheduler Architecture Decision Template
PowerShell is Happening FOR REAL THIS TIME!!!
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
Fun with Reporting Services Tools
Contained DB? Did it do something wrong?
Deployment & Management with PSADK, SCCM & EM
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
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.
Chapter 5 Objectives Understand How to Plan a Windows 7 Deployment with Answer Files. Capture System Image Using Sysprep and ImageX. Use Deployment Image.
Migrating your SQL Server Instance
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
Use PowerShell & dbatools to Manage your SQL Server Environment
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
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

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

Server Migration Commands: Start-DbaMigration

- Demo -

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/SQLSaturdayDallas