PowerShell is Happening FOR REAL THIS TIME!!!

Slides:



Advertisements
Similar presentations
James Boother Blog: AUTOMATING ADMIN TASKS WITH POWERSHELL.
Advertisements

By Aaron Nelson I blog at SCVMM This!. Why Virtualize Four components make virtualization very compelling. * (to me) Live Migration – If you need to switch.
The Dirty Dozen: PowerShell Scripts for the Busy DBA DBA-237 Aaron
PowerShell for Windows Admins By Aaron Nelson *(Mostly) SQLvariant.com My Blog SQLPowerShell.com PowerShell specific blog posts I’m not a PowerShell Expert.
PowerShell for Data Professionals By Aaron Nelson *(Mostly) SQLvariant.com My Blog SQLPowerShell.com PowerShell specific blog posts I’m not a PowerShell.
Scott Fallen Sales Engineer, SQL Sentry Blog: scottfallen.blogspot.com.
T Iteration Demo LicenseChecker I2 Iteration
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
SQL SERVER DEPLOYMENT & MANAGEMENT WITH PSADK, SCCM & EM.
Visual Studio Database Tools (aka SQL Server Data Tools)
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Automated Enterprise-wide SQL Server Auditing
Shared Services with Spotfire
Achieve more in less time using the new SQL PowerShell
Introduction to PowerShell
Fun with Reporting Services Tools
Deployment & Management with PSADK, SCCM & EM
Simplifying XEvents Management with dbatools
Dimodelo Solutions.
Troubleshooting Service Broker
Discovering SSRS 2016 in Azure: Dataset to Deployment
dbatools! The reason to finally start learning and using Powershell
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
Please support our sponsors
Architecting Availability Groups
SQL Server and PowerShell Let’s Get Serious
Why most candidates fail the interview in the first five minutes
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
Use PowerShell & dbatools to Manage your SQL Server Environment
PowerShell for Data Professionals
SQL Server and PowerShell Let’s Get Serious
Visual Studio Database Tools (aka SQL Server Data Tools)
We Asked, You Said US
Getting started with Powershell for the DBA
Why most candidates fail the interview in the first minute
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
dbatools! The reason to finally start learning and using Powershell
Reliable, Repeatable, Configurable & Automated Validation with
Making PowerShell Useful
PowerShell Best Practices for SQL DBA’s
Making PowerShell Useful
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
Parameter Sniffing: the Good, the Bad, and the Ugly
Why most candidates fail the interview in the first five minutes
Parameter Sniffing: the Good,the Bad, and the Ugly
We Asked, You Said CA
Parameter Sniffing: the Good, the Bad, and the Ugly
Use PowerShell & dbatools to Manage your SQL Server Environment
Getting Hired By Expireds Part 1
Gold Sponsors.
Tech Ed North America /27/ :04 AM Required Slide
DEV322 Visual Studio 2005 C# IDE Enhancements
Summit Nashville /26/2019 4:32 AM
dbatools! The reason to finally start learning and using Powershell
Michael Wall Senior DBA, Great Western Malting
Keeping ConfigMgr Clean
Using Dbatools to Automate Database Migrations
Why most Candidates fail the Interview in the first five Minutes
SSMS to Azure Data Studio
What it is and why you should use it
Why most Candidates fail the Interview in the first five Minutes
Getting Hired By Expireds Part 1
We Asked, You Said.
Samuel Kastberg Scripting a BizTalk Server installation
Presentation transcript:

PowerShell is Happening FOR REAL THIS TIME!!! Aaron Nelson

PowerShell for Data Professionals By Aaron Nelson Aaron@SQLvariant.com SQLvariant.com My Blog SQLPS.com PowerShell VC of PASS sqlps.io/video PoSh VC YouTube channel Copyright 2016 By Aaron Nelson

PowerShell VC of PASS Join the conversation with us on Trello sqlps.io/vote If you want to make SSMS better you can do that too! sqlps.io/ssms

The SQL Provider is Object Explorer, just at the command line Object Explorer Details (F7) is a wonderful compliment to Object Explorer itself. Lets Traverse and look at indexes

Trying out a new session today A whole lot has changed in the ~14 weeks. Your feedback is extremely important to me

Today is about inspiration I’m not going to trot out every awesome script I have I’m going to show you some cool things Then I’d like to hear what you’d like to do if you could wave a magic wand (because I know a guy… and a gal)

Don’t freak out about the syntax You know T-SQL and you can still use it! (Invoke-SqlCommand) Although, that’s usually the point PowerShell has SELECT WHERE AND JOIN, just for starters

This next demo IS NOT ABOUT BACKUPS. Hopefully you’re using Ola scripts to backup your databases Which you can of course deploy with PowerShell 

Backup All Databases Get-SqlDatabase -ServerInstance localhost | Backup-SqlDatabase Get-SqlDatabase -ServerInstance localhost | Backup-SqlDatabase -CompressionOption On Get-SqlDatabase -ServerInstance localhost | Where { $_.Name -ne 'tempdb' } | Backup-SqlDatabase -CompressionOption On

Lets just backup the ones we like OGV with the –PassThru parameter is your friend Let’s do that across multiple instances

How do I know what cmdlets are out there? Get-Command -Module SQLPS Get-Command -Module SQLPS -ParameterName Database Get-Help Get-Help Backup-SqlDatabase -Examples

Who likes reading through the error log? Who checks it every day? Who likes picking through there looking for a single word. Every. Single. Day.

Methods & Properties Methods are Verbs Properties are Adjectives You Put Properties in your WHERE clause I meant Filter Properties using Where-Object You can see a ton of Properties already in Object Explorer Details

Want to Migrate your SQL instace? DBAtools.io Copyright 2016 By Aaron Nelson

What if you want to Compact some indexes? Great idea But what if you wanted to compact just some of those indexes? DATA_COMPRESSION_ROW.ps1

Use Snippets You have lots of great ideas to make things in your environment better. Use the Snippets feature in PowerShell and create Snippets for Multi-Server Multi-Database Multi-Table Multi-Index Don’t forget that you can create one snippet for Prod servers and a different snippet for QA servers

Microsoft is Listening They have listened to the community They have hired a full time engineer for PowerShell in SQL Server They are still listening We setup a Trello board to help organize the community’s thoughts & voices The SQL Tools team comments on that Trello board. They ask questions Give us status updates Ask us if we’d like automated fries with that.

PowerShell for Data Professionals Aaron Nelson SQLvariant.com My Blog SQLPS.com PowerShell VC of PASS Aaron@SQLvariant.com Copyright 2016 By Aaron Nelson