SQL Server and PowerShell Let’s Get Serious

Slides:



Advertisements
Similar presentations
Batch Import/Export/Restore/Archive
Advertisements

Automated Deployment Framework Using TFS and Custom PowerShell cmdlets to create an automated deployment framework.
Master Data Management & Microsoft Master Data Services Presented By: Jeff Prom Data Architect MCTS - Business Intelligence (2008), Admin (2008), Developer.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Azure SQL Database Lori Clark SQL Saturday 10/17/2015.
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Introduction to SQL Server Automation with Powershell by Chris Sommer.
Database Design: Solving Problems Before they Start! Ed Pollack Database Administrator CommerceHub.
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
DBMS Programs MS SQL Server & MySQL
IT06 – HAVE YOUR OWN DYNAMICS NAV TEST ENVIRONMENT IN 90 MINUTES
Recommended Practices & Fundamentals
On-premise database. Files in the cloud.
Working with SQL Server for Linux Cross-Platform
SQL Server deployments
Shared Services with Spotfire
Glasgow, SQL Server Meetup
Report Builder as Self Service BI Solution
PowerShell is Happening FOR REAL THIS TIME!!!
R For The SQL Developer Kevin Feasel Manager, Predictive Analytics
Getting Started With SQL Server Replication
Fun with Reporting Services Tools
Mapping Shema and Recursively Managing Data
Upgrading to SQL Server 2016
DevOps Database Administration
Transactional Replication A Deeper Dive Drew Furgiuele, Senior DBA IGS
SharePoint Saturday Omaha April 2016
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
SQL Server and PowerShell Let’s Get Serious
DevOps Database Administration
SQL Saturday #654 - Omaha.
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
What’s new in SQL Server 2016 Availability Groups
Chrissy LeMaire, MVP & Rob Sewell, MVP
dbatools - PowerShell and SQL Server Working Together
Example of a page header
PowerShell for Data Professionals
SQL Server Scripting using PowerShell
Tracking Index Usage Like a Pro
Getting started with Powershell for the DBA
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
Reliable, Repeatable, Configurable & Automated Validation with
Making PowerShell Useful
Making PowerShell Useful
Outsourcing Database Administration
Stretch Database - Historical data storage in SQL Server 2016
EXPLORING THE SQL POWERSHELL MODULE
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Grow Your Script From Simple to Module
Use PowerShell & dbatools to Manage your SQL Server Environment
NAVIGATING THE MINEFIELD
Administrating SQL Server with PowerShell dbatools
TechEd /23/2019 9:23 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Gold Sponsors.
SQL Server Scripting using PowerShell
SSDT, Docker, and (Azure) DevOps
Michael Wall Senior DBA, Great Western Malting
Server & Tools Business
Keeping your SQL Code safe
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
SSDT, Docker, and (Azure) DevOps
What it is and why you should use it
This is the slide shown before the presentation starts
SSDT, Docker, and (Azure) DevOps
Bringing source control to BI world!
Samuel Kastberg Scripting a BizTalk Server installation
Presentation transcript:

SQL Server and PowerShell Let’s Get Serious 11/27/2018

About me Contact Info I’m a Senior SQL Server DBA at IGS Energy in Dublin, Ohio. I’ve been using SQL Server since SQL Server 2000 and I love it. I also enjoy DevOps, release management, and PowerShell. dfurgiuele@igsenergy.com @pittfurg http://www.port1433.com http://www.genesface.com 11/27/2018

AGENDA Why using PowerShell will make your life more awesome SQL Server PowerShell Provider Code, code, and more code! 11/27/2018

Using PowerShell Will Make Your Life Awesome! “I don’t want to learn PowerShell because I don’t have time.” “Why would I waste time writing this in PowerShell when I can already do it in T-SQL?” Understanding PowerShell in general increases your worth. Helps you interact with System Administrators better. Useful for deploying code or system changes. Saves you a ton of time (automate all the things!). Core Servers laugh at your puny GUI. Let me know how you plan on automating things in Azure. 11/27/2018

The SQL Server PowerShell Provider SQLPS Module It’s where the awesome lives Provides a directory hierarchy for interacting with SQL Server For more information, including cmdlets and SMO objects: https://msdn.microsoft.com/en-us/library/cc281947(v=sql.110).aspx 11/27/2018 Report Out October 2013

Let’s Just Do it! 11/27/2018

Real-World Example: Export Database Objects (not just tables) for DR purposes Why backup an entire reporting replica when you can just grab the good bits? Perfect for reporting environments Talk about the .Script() method, maybe bring up MSDN page if able? 11/27/2018

Real-World Example: Dynamically Copy Database Tables From One Database to Another PowerShell makes it easy to iterate over a Database/Schema and script out objects while also copying the data. What about Foreign Keys? What about Indexes? Permissions? Good intro into PowerShell provider and SQL drive paths Refresh() method on tables… why? 11/27/2018

Real-World Example: Copy SSIS Environments Need to clone that SSIS environment locally? What about to another server? Or another instance? Because it’s a colossal pain it the ass! Mention “SSIS” instead of “SQL” path, how the provider lists all instances under the main hostname Another good example of .Refresh() 11/27/2018

Real-World Example: Auditing SQL Server Group Permissions Just who has access to that database? In an active directory environment, guess what? There’s a tool (and module!) for that… Great example about how you can marry multiple products together Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools 11/27/2018

Wrapping Up PowerShell is a great tool that you should be using, or trying to use. Not saying it should solve/replace all your tasks, just supplement them. Helps blur the line between a SQL Server Professional/DevOps/Iteration Management/etc A more robust you = a more in-demand you. 11/27/2018

Questions? 11/27/2018

About me Contact Info I’m a Senior SQL Server DBA at IGS Energy in Dublin, Ohio. I’ve been using SQL Server since SQL Server 2000 and I love it. I also enjoy DevOps, release management, and PowerShell. dfurgiuele@igsenergy.com @pittfurg http://www.port1433.com http://www.genesface.com 11/27/2018

Thanks Sponsors! 11/27/2018 Report Out October 2013