PowerShell & PowerBi Reducing DBAs Context Switching

Slides:



Advertisements
Similar presentations
How to Perform a SQL Server Health Check
Advertisements

Help! My table is getting too big! How to divide and conquer SQL Relay 2014.
National Manager Database Services
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Improving productivity with online collaboration © 2015 albert-learning.com Improving productivity with online collaboration.
TEAM Basic TotalElectrostatic ManagementAwareness&
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Using Power BI with my DBA Database
Load Testing with SQL Server Tools Neil Hambly SQL Server Practice Lead Northdoor PLC.
Microsoft PowerBI – Advanced Solutions with Microsoft Excel and PowerBI Presented by: Phillip Guglielmi, CPA | Senior BI Consultant and Solutions Architect.
Contact form LAW Click the web link
Smarter Technology for Better Business
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Automated Enterprise-wide SQL Server Auditing
Common Methods Used to Commit Computer Crimes
PASS Community News November 2016
Achieve more in less time using the new SQL PowerShell
Turning Your Checklists
PASS Community News December 2016
Please Support Our Sponsors
Where I am at: Swagatika Sarangi MDM Lead PASS Summit SQL Saturdays
[+] Title Should Be 'Introduction to Pester‘ 89ms
Administrating SQL Server with PowerShell dbatools
Purpose, Pitfalls and Performance Implications
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
Making PowerShell Useful
Hitting the SQL Server “Go Faster” Button
5 WAYS TO BYPASS *OR ENSURE* SQL SERVER SECURITY MATT MARTIN
Making PowerShell Useful
Making Your Emergency Toolkit
What’s new in SQL Server 2016 Availability Groups
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
dbatools - PowerShell and SQL Server Working Together
Purpose, Pitfalls and Performance Implications
SQL Saturday #662 - Sioux Falls, SD Hosted by (605) SQL
Reliable, Repeatable, Configurable & Automated Validation with
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
SQLSERVER:\ Using the SQL Server Provider with PowerShell
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
Commands for SQL Server
PowerShell SQL Server I will be tweeting links as we go
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
PowerShell for the DBA: Why I love my inner pig-dog
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Start Your Own Consulting Practice
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Please Support our Sponsors
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Power BI with Analysis Services
Summit Nashville /3/2019 1:48 AM
Reliable, Repeatable, Configurable & Automated Validation with
Use PowerShell & dbatools to Manage your SQL Server Environment
Administrating SQL Server with PowerShell dbatools
1. Get your bubble lab 2. Flip to the graph
Michael Wall Senior DBA, Great Western Malting
Managing and monitoring SQL Server on Linux from the command line
Make Your Maintenance Plans…
This is the slide shown before the presentation starts
Implementing ETL solution for Incremental Data Load in Microsoft SQL Server Ganesh Lohani SR. Data Analyst Lockheed Martin
Presentation transcript:

PowerShell & PowerBi Reducing DBAs Context Switching Rob Sewell @sqldbawithbeard http://sqldbawithAbeard.com #psconfasia Slides and Demos available at https://github.com/SQLDBAWithABeard/Presentations/ PowerShell & PowerBi Reducing DBAs Context Switching

Speaker Questionnaire Name : Rob Occupation : DBA, Automator, Do-er Interests : PowerShell, Automation And SQL (PaaS geddit?) Website : sqldbawithAbeard.com Twitter : @sqldbawithbeard Interesting Fact : Has a Beard. (Still) Plays Cricket Speaker : SQL Saturdays, SQL Relay, PowerShell Conference EU Community : SQL South West , SQL Saturday Exeter , PowerShell Virtual Chapter, Organiser for PowerShell Conference EU 2017, Officer, Lead for dbareports, contributor to dbatools https://dbareports.io @psdbareports

What Problem are we Solving? Rob Sewell @sqldbawithbeard

Questions Rob Sewell @sqldbawithbeard Managers PMs Developers Compliance Auditors DBAs Change Managers How Many? Where Are? What Is? Which? When? Compliance want to know how many Server 2003 or SQL 2005 or XPCMDShellEnabled Project Managers and the project team want to know which servers and databases for their systems, how big, what settings etc Systems Team, Change Managers want to know which servers and which clients are in which Data Centre for maintenance work (UPS replacement for example) Rob Sewell @sqldbawithbeard

Replace The Old Ways Rob Sewell @sqldbawithbeard It’s time to move on from the Old Ways of doing things. I loved my Excel sheet with RAG for every agent job generated every day but in this modern world do we need to be emailing or saving files on shares to get our information Rob Sewell @sqldbawithbeard

Instant Views For The DBA Team We – The DBA Team want good visualisations of exactly the information that we want to see including averages to see our improvement. Here we see a rolling 30 day average for failed jobs (Blue) Rolling 7 day average (green) Failed Jobs (Red) and a gauge showing the failed jobs today against the average But also we can show the number of SQL 2000 instances going down or other goals or objectives that we have a team have been set Rob Sewell @sqldbawithbeard

Help Yourself Rob Sewell @sqldbawithbeard Self-Service – Enable the Requestors to get what they want when they want Reduce the load on the DBA Team Rob Sewell @sqldbawithbeard

SOLUTION REQUIREMENTS Local Knowledge Rob Sewell @sqldbawithbeard What do we need to build our solution to this problem? Powershell – to gather our information SQL Server – to store the information and ensure that it is kept available and backed up (and in control of the DBA Team Power Bi – to create the reports and view/share them Local Knowledge – Whether you keep your instances in a CMS or in a text file or on the back of a napkin you will need to know where they are Rob Sewell @sqldbawithbeard

The Manual Part This used to be a bit of a pain to set up. And then we wrote And now all it is this PS Git:\dbareports> Install-DbaReports -SqlServer DBASQLServer PS Git:\dbareports> Add-DbrServerToInventory -SqlInstance 'ROB-SURFACEBOOK' -Port 1433 -Environment Prod -Location Singapore Enter this information into this table Ensure Policies, Procedures and Processes include this step for new instances and also that the Inactive flag is set when instances are removed

DBA – Fills in instances Agent Jobs run every night to gather the information regularly (Agent Job Databases, every night, Server, SQL every week Now the DBA Team can use powershell to gather information – My Find-Database function queries this (and we use Excel too so the information is available locally in the case of disaster) The DBA Team can use TSQL too. The information is pretty up to date and we have the date checked column to see when last checked They can then answer questions quicker (No need to connect to a server) They can quickly identify instances which need action (Policies not set (Max mem, Min mem Adhoc workload enabled etc)) and target them with powershell BUT – Now we can let them ask their own questions  and have access to the data they require when ever they want.

MUST BE TIME FOR A DEMO

Questions?