Gold Sponsors.

Slides:



Advertisements
Similar presentations
Automating Common DBA Tasks
Advertisements

Module 11 : Backup and Restore Jong S. Bok
Configuration Management and Server Administration Mohan Bang Endeca Server.
SharePoint 2010 Development Environment A Guide to Setup SharePoint 2010 Development Environment on Windows 7 Machine.
BODY From Source Code Management to Daily Build Soren Klemmensen, Kamil Sacek & Luc van Vugt
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
Wharton Computer Consulting, Inc. PowerShell Basics for SQL Server One Tool to Manage All SQL Servers Michael Wharton
Introduction to SQL Server Automation with Powershell by Chris Sommer.
MANAGEMENT DATA WAREHOUSE AND DATA COLLECTOR Ian Lanham.
Introduction Service Management Automation
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Introducing SQL Server 2000 Reporting Services
MANAGING & ADMINISTERING SQL AZURE
Working with SQL Server for Linux Cross-Platform
SQL Server deployments
Database System Concepts and Architecture
Achieve more in less time using the new SQL PowerShell
Chris Menegay Sr. Consultant TECHSYS Business Solutions
In-Depth Introduction to Docker
Efficiently Searching Schema in SQL Server
On the road: Test automation in practice for a BMW map update service
Document SQL Server with PowerShell
Fun with Reporting Services Tools
SQL Server & PowerShell
Configuring the network environment
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
SharePoint Saturday Omaha April 2016
Administrating SQL Server with PowerShell dbatools
How to survive without a GUI
Windows PowerShell Remoting: Definitely NOT Just for Servers
dbatools! The reason to finally start learning and using Powershell
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
Administrating SSRS without boring web based clicks!
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
SQL Server and PowerShell Let’s Get Serious
Oracle Architecture Overview
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
SQL Server and PowerShell Let’s Get Serious
Migrating your local database to Azure SQL DB
SQL Server Scripting using PowerShell
Getting started with Powershell for the DBA
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
dbatools! The reason to finally start learning and using Powershell
Making PowerShell Useful
PowerShell Best Practices for SQL DBA’s
SQLSERVER:\ Using the SQL Server Provider with PowerShell
EXPLORING THE SQL POWERSHELL MODULE
Administrating SQL Server with PowerShell dbatools
Use PowerShell & dbatools to Manage your SQL Server Environment
Administrating SQL Server with PowerShell dbatools
SQL Server Scripting using PowerShell
Database System Concepts and Architecture
SQL Server 2005 Reporting Services
Rich Benner SQL Server Performance Richbenner.com.
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
The Force Within Management Data Warehouse
Office 365 Development July 2014.
What it is and why you should use it
PowerShell for ConfigMgr 2012 SP1
Life Hacks: dbatools Edition
Thanks to our Sponsors Platinum Sponsor: Gold Sponsors:
Presentation transcript:

Gold Sponsors

the wonders of modern SQL administration …with Powershell and dbatools presented by @nvarscar

about:me Kirill Kravtsov - @nvarscar SQL Server DBA at Wawanesa Insurance 10 years of SQL Server experience DB Engine, SSRS, SSIS, SSAS Automation – Powershell, T-SQL Adept of DevOps in databases

agenda Why would I use Powershell? Powershell 💖 SQL Server dbatools About Installation Navigation and help Demo

why can’t we just use native sql tools? GUI (SSMS, Configuration Manager) Excellent tool to perform instance configuration and execute queries Some things can only be done through T-SQL Endpoint configuration, backup history, snapshots, search definition, sp_configure No bulk operations T-SQL Well suited for data operations; not so much for configuration and maintenance Queries against a set of servers are difficult to implement Linked Servers, OPENROWSET, foreach operations Limited exposure to underlying OS including interactions with third-party applications Some operations cannot be performed purely via T-SQL AlwaysOn, SSIS Catalog, Data Collection, Maintenance Plans

when ps stands out? Multi-server management Handles arrays of objects with ease Code re-use Combining results from multiple sources Interactions with other applications and OS Starting processes Processing output Using .Net classes natively Automation Maintenance Reporting Testing ….

native powershell module SqlServer(aka SQLPS) Developed by Microsoft Supplied with SQL Server SMO assemblies (dlls ) Introduces new root drive SQLSERVER:\ You can access instances using the path notation: SQLSERVER:\SQL\ServerName\InstanceName Initially distributed with SSMS, now available in PSGallery Install-Module SqlServer

sql server management objects SMO Microsoft.SqlServer.Management .NotificationServices .RegisteredServers .Trace .Smo .Server .Agent .Broker .Mail .Wmi …

dbatools ps module Created by DBAs for DBAs Free, open-source and community-driven Started as a database migration solution Over 500 commands automating multiple aspects of DBA’s life: Move entities between environments (databases, logins, parameters, etc.) Tests and verifications Statistics Configuration … and so much more

dbatools installation Powershell Gallery: Install-Module dbatools Invoke-Expression (Invoke-WebRequest -UseBasicParsing https://dbatools.io/in) Download the zip directly and manually import the module. Clone the repository from GitHub: git clone https://github.com/sqlcollaborative/dbatools More info: https://dbatools.io/download/

dbatools: navigation and help Function names: <Verb>-Dba<Noun>, e.g.: Get-DbaLogin Test-DbaConnection Find-DbaCommand pattern Web-site: https://dbatools.io/functions/ Get-Help function-name Slack: http://sqlcommunity.slack.com #dbatools Invitation: https://dbatools.io/slack/

DEMO