Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test and Verify Instances with DBAchecks

Similar presentations


Presentation on theme: "Test and Verify Instances with DBAchecks"— Presentation transcript:

1 Test and Verify Instances with DBAchecks

2 About Me Josh Corrick Worked in IT for around 7 years Lived in Jacksonville for 4 years MCSA - Linux in Azure Passionate about PowerShell Contributed to Dbatools I like to Hike

3 Overview What is DbaChecks? What does DbaChecks run on?
What is Unit testing? How do we use DbaChecks? Demos

4 But First… Who are you? Dba? Developer? BI + Reporting?
All three of these? PowerShell?

5 What is DbaChecks? DbaChecks is a framework for checking SQL Instances
Think of it as a Automated Checklist It is written in PowerShell and is an open sourced module Written (Chrissy LeMaire), @sqldbawithbeard (Rob Sewell) and a handful of others

6 How do you Install DbaChecks?

7 What does DbaChecks run on?
DbaChecks requires PowerShell version 4+ (but not 6…yet) Some modules from PowerShell Gallery Pester Dbatools PSFramework

8 What is Pester? A Behavior Driven Development Test Runner
….It is a test framework for PowerShell ……It’s module for writing code to check your code …………It helps you test things with PowerShell

9 Testing Types Test Types Unit Tests smaller units of code Integration
Tests how code works together with a system Component Tests on how information passes through code System Tests that a system meets the specs required Acceptance QA Testing to ensure the everything is running

10 Testing Types Test Types Unit Tests smaller units of code Integration
Tests how code works together with a system Component Tests on how information passes through code System Tests that a system meets the specs required Acceptance QA Testing to ensure the everything is running

11 Why should I care about Pester?
…………Pester helps you test things with PowerShell Before Pester Find a Problem Write a Script Run that Script See Errors on the Screen Google Errors Adjust Script Repeat steps 3-6 until working With Pester Find a Problem Write a Script Write a Unit Test for that Script Run the Test If your test passes your good If it doesn’t adjust your script

12 Back to DbaChecks Leverages Unit and Integration tests to validate systems Includes Necessary checks (Backup Integrity) Desirable checks (Suspect Pages, Duplicate Index) Best Practices (SQL Agent job ownership, PowerPlan)

13 DEMOS

14 Questions?

15 Contact Me Josh Corrick Blog:


Download ppt "Test and Verify Instances with DBAchecks"

Similar presentations


Ads by Google