Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using Dbatools to Automate Database Migrations

Similar presentations


Presentation on theme: "Using Dbatools to Automate Database Migrations"— Presentation transcript:

1 Using Dbatools to Automate Database Migrations
Joshua Corrick Using Dbatools to Automate Database Migrations

2

3 https://tinyurl.com/y6spgfwn
Slack Channel – #jssug #sqlhelp #jobhelp #sqlsatjax

4 Please Take Pictures and Post!

5 501 Legion Charitable Donation
Thank the 501 Legion for Supporting Our Event! JSSUG Will Match Donations up to $200 Donation Bucket on Registration Table

6

7

8 Don’t forget Session Eval’s for Speakers!
Don’t forget Event Evals for xBox Raffle! Schedule is Online and in GuideBook App

9 Modern Migration Tour Register: https://tinyurl.com/y6qom9n3
When: June 15, 2019 Where: UNF Sponsored by: PASS, Microsoft & Intel In the lead up to SQL Server 2008 end of support, PASS has recruited Sandy—an expert in all things migration—along with an all-star lineup of speakers from Microsoft and Intel®, to smoothly guide you to your final destination—a modern data platform. Whether you’re interested in moving to an updated on-premises, cloud, or hybrid solution; PASS, Microsoft, Intel®, and Sandy (of course!) have teamed up for a must attend series of webinars, in-person events, and migration resources, dedicated to giving you the tools you need to migrate with confidence.

10 whoami Joshua Corrick Sr. Systems Engineer Accidental DBA Passionate about PowerShell Major Contributor to Dbatools

11 What is Dbatools? A tool set for managing MS SQL Servers
It is written in PowerShell and is an open sourced module Written (Chrissy (Rob Sewell) and a handful of others

12 But isn’t there something already?
Yup.. Sqlcmd – not PowerShell Minishell - SQLPS.exe SQLServer Snapin SMO SQLServer Module (2014-present) SQLCMD tool originally designed for interacting with the database only. Minishell was not a fan favorite as it was restrictive and buggy. Snapins were a PowerShell 2.0 method. SMO objects are the preferred objects used by SSMS for any custom plugins (Also used by PowerShell). SQLServer Module was buggy, Slowly developed, Invoke-SQLCmd was slow,

13 Case for Dbatools Community built Open to user review
Codifying best practices Automates all the things Community built means that actual product users create the tools they need. The code is not compiled (like the SQLServer module) so security teams may review each cmdlet. By writing cmdlets like Test-DbaPowerPlan it reminds the community of best practices. One of the best things to automate is Database migrations dbatools aims to support as many configurations as possible, including PowerShell v3 and above Windows, macOS and Linux SQL Server Express - Datacenter Edition Clustered and stand-alone instances Windows and SQL authentication Default and named instances Multiple instances on one server Auto-populated parameters for command-line completion (think -Database and -Login)

14 Demo


Download ppt "Using Dbatools to Automate Database Migrations"

Similar presentations


Ads by Google