SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
About Dave
0 Computer consultant since 1996
   0 Background in technical support, web application design,
     network administration
   0 Primarily Windows, SQL Server
   0 Dabble in Linux, Opensource
0 Microsoft Certified SQL Trainer since 2002
0 MCITP, MCAD, MCSE 2000(I like taking tests.)
0 Lead I.T. Engineer with CheckAlt Payment Solutions providing
    Check21 Remote Deposit Capture solutions.
0   Enjoy helping my clients solve their I.T. problems
0   PowerShell Student and Fan 
0   http://daveslog.com
0   sql@davidcobb.net I like emails.(..when they’re from people)
Who’s my audience?
0 SQL Pros!
   0 Using SQL 2012, at least in dev
   0 No PowerShell experience OK
   0 Some PowerShell or batch programming background.
   0 Advanced users should learn something too
   0 Bleeding edge:  Eager to learn the latest tools, search
     for the answers, and share what you know.
Overview
0 PowerShell 3 Quick Overview
   0 PowerShell basics
   0 New PowerShell 3 features
   0 PowerShell 3 Integrated Scripting Environment (ISE)
0 SQL 2012
   0 PowerShell Cmdlets
   0 SMO / SQL Management Objects
0 Resources
   0 Script Explorer
   0 PowerShell Community Resources
What’s PowerShell?
0 PowerShell is a scripting environment built on .NET
  which provides one interface to Windows
  technologies like WMI and COM.
0 Cmd.exe on steroids!
0 Windows management tool of the future and today 
0 It doesn’t replace TSQL, SSIS, .Net or command line,
  but it works with all of them. Another tool in your
  toolbox.
PowerShell 101
0 3 commands you need to know *
     0 Get-Help
     0 Get-Command
     0 Get-ChildItem
0 3 concepts you need to know *
     0 Cmdlets (Verb-Noun)
     0 Variables ($myvariable)
     0 Piping (Get-ChildItem | Where Name -Like "*.txt“)


0 Everything else is on the web 


*I’m vastly oversimplifying for the purposes of this slide. Learning PowerShell is a journey, not a destination. 
Windows Management
                Framework 3.0
              aka PowerShell 3
0 Out of RC Sep 4, 2012
 http://tinyurl.com/windowsmanagementframework3
0 Built in to Windows 8 and Server 2012
0 Tons of Cmdlets http://tinyurl.com/powershell3
   0 PowerShell Core
   0 SQL, Sharepoint, SystemCenter, Azure, Hyper-V, Exchange,
     Lync, many others
   0 Every Microsoft product will be managed with PowerShell!
0 Can install to Server 2008 R2 SP1 and 2008 SP2 to manage
 downlevel servers from Server 2012
  0 Needs Framework 4.0
  0 http://blogs.technet.com/b/servermanager/archive/tags/do
    wnlevel+servers/
PowerShell changes from 2 to 3
0 Mostly backward compatible, use the same scripts.
0 Use $PSVersionTable to see current version
0 If your V2 scripts break, can still run in V2
   0 PowerShell.exe –version 2
   0 Invoke-V2Script
Cool PowerShell 3 Features
0 Module Auto-Loading
0 PowerShell Web Access
0 Window Remote Management / WinRM Improvements
   0 PSEXEC for PowerShell, Like Screen in Unix
   0 Enable-PSRemoting -SkipNetworkProfileCheck
0 Syntax Improvements
   0 Where-Object
   0 $PSDefaultParameterValues
   0 Hash tables as objects
0 Update-Help
0 PowerShell 3 What’s New Page
 http://tinyurl.com/ps3whatsnew
PowerShell 3 Tools
0 From Microsoft
   0 Integrated Scripting Environment (ISE) for PowerShell 3
   0 Microsoft Script Explorer for Windows PowerShell
0 Community Resources
   0 PowerShell Community Resources
     http://tinyurl.com/pscommunities
   0 PowerGUI.org
0 PowerShell Tool Vendors
   0 Sapien
   0 Idera
   0 -???
PowerShell ISE
0 Integrated Scripting Environment
0 The IDE for PowerShell
0 New features in 3.0
  0 Intellisense
  0 Zoom
  0 Command Add-On
SQL 2012 PowerShell Extensions
0 Microsoft® Windows PowerShell Extensions for
 Microsoft® SQL Server® 2012
  0 Part of Microsoft® SQL Server® 2012 Feature Pack
  0 http://tinyurl.com/sql2012featurepack
  0 Requires PoSH 2, works with PoSH 3
0 Requires SMO
0 Backward Compatible to SQL 2005
What about SQLPSX?
0 Opensource library of dozens of SQL Cmdlets, before
  Microsoft provided SQLPS.
0 Still much more extensive that SQLPS
0 Wraps calls to SMO in PowerShell Cmdlets Backward
  compatible to SQL 2000
0 Last update March 2011
0 Still very useful for prior SQL versions
0 Partial PowerShell 3 support
  http://sqlpsx.codeplex.com/discussions/393377
SQL Management Objects
0 Access all aspects of SQL Server programmatically
0 You’ll use this extensively in your PowerShell
  scripts
0 Developer’s Reference: http://tinyurl.com/smoguide
0 SQLPS Cmdlets wrap this functionality for basic
  functions
0 SQLPSX takes it a step further
 http://www.sqlpsx.com/
Microsoft Script Explorer for
      Windows PowerShell

0Find community PowerShell scripts,
 modules and import them to your
 environment.
0(Release Candidate) Aug 9 2012
 http://tinyurl.com/scriptexplorer
Uses PowerShell Script
            Repositories
  0 Technet Script Center
   http://gallery.technet.microsoft.com/ScriptCenter/
  0 PoshCode
    http://poshcode.org/
  0 Extendable
0 PowerShell Community Resources
 http://tinyurl.com/pscommunities
Demo Topics
0 Explore SQLPS Cmdlets
0 Where-Object Syntax Enhancement
0 Get SQL Server Instances
0 Manage SQL Windows Services
0 Read SQL Error Logs
0 Query Disk Space on SQL Servers
0 Use WebClient, sp_Blitz and Export-CSV
0 Script SQL Tables
0 RestoreMultipleDBs SQL Job
Resources
0 Whatever it is you’re doing with PowerShell, someone
  has probably done it before and blogged about it!
0 Take advantage of the excellent free resources out
  there for learning PowerShell.
0 Read other people’s code, and adapt for your needs.
0 Use the tools!
SQL 2012 PowerShell
            Bloggers
0 Michael Sorens
  0 http://www.simple-talk.com/sql/database-administration/practical-
    powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/
  0 http://www.simple-talk.com/sql/database-administration/practical-powershell-
    for-sql-server-developers-and-dbas-%E2%80%93-part-2/
0 Donabel Santos
   0 http://www.sqlmusings.com/
   0 Check out her webcast for Idera
     http://www.idera.com/Education/PowerShell-Webcasts/
   0 Wrote the book on SQL 2012 and PowerShell
     http://www.packtpub.com/sql-server-2012-with-
     powershell-v3-cookbook/book
0 Laerte Junior
   0 http://www.simple-talk.com/author/laerte-junior/
Cool Tools for PowerShell
0 SPADE – SQL installation and configuration
  http://sqlspade.codeplex.com/
0 PowerShell WMI Explorer
  http://www.powershellpro.com/wmi-explorer/160/
0 PowerShell Scriptomatic
  http://tinyurl.com/scriptomaticv2
0 PowerGUI – Wrap your scripts in a GUI
  http://www.sapien.com/software/powershell_studio
PowerShell Help
0 Stackoverflow.com
 http://stackoverflow.com/questions/tagged/PowerShell
0 PowerShell Community Resources
  http://tinyurl.com/pscommunities
0 Just search the web  many great bloggers, may great
  resources
Call to Action
0 Learn PowerShell 3!
   0 Tons of free resources on the web
   0 Play and learn
0 Use SQL 2012 with PowerShell Cmdlets from the
  feature pack
0 Explore scripts available on the web
  0 You’re probably not the first one with that problem, find
    their solution and adapt it for your environment.
0 Share what you learn
References
0 Dr Tobias Weltner’s Mastering PowerShell
  http://PowerShell.com/Mastering-PowerShell.pdf
0 PowerShell V2 Owners Manual
  http://tinyurl.com/ps2ownersmanual
0 Windows PowerShell 3.0 and Server Manager Quick
  Reference Guides
  http://tinyurl.com/ps3quickref
0 Stairway to SQL PowerShell
  http://www.sqlservercentral.com/stairway/91327/
0 Running PowerShell 2 and 3 side by side
  http://mcpmag.com/articles/2011/12/20/powershell-2-
  and-3-side-by-side.aspx

Weitere ähnliche Inhalte

Andere mochten auch

PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functionsmikepfeiffer
 
Power shell training
Power shell trainingPower shell training
Power shell trainingPedro Lopez
 
Intro to PowerShell Workflow
Intro to PowerShell WorkflowIntro to PowerShell Workflow
Intro to PowerShell WorkflowJeffery Hicks
 
Introduction To Power Shell
Introduction To Power ShellIntroduction To Power Shell
Introduction To Power ShellIvan Suhinin
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secretChris Conte
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionSQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionMark Broadbent
 
Power shell training
Power shell trainingPower shell training
Power shell trainingDavid Brabant
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShellAn Introduction to Windows PowerShell
An Introduction to Windows PowerShellDale Lane
 
Introduction to powershell
Introduction to powershellIntroduction to powershell
Introduction to powershellSalaudeen Rajack
 

Andere mochten auch (10)

PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functions
 
Power shell training
Power shell trainingPower shell training
Power shell training
 
Intro to PowerShell Workflow
Intro to PowerShell WorkflowIntro to PowerShell Workflow
Intro to PowerShell Workflow
 
Introduction To Power Shell
Introduction To Power ShellIntroduction To Power Shell
Introduction To Power Shell
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secret
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionSQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
 
Power shell training
Power shell trainingPower shell training
Power shell training
 
Sql server infernals
Sql server infernalsSql server infernals
Sql server infernals
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShellAn Introduction to Windows PowerShell
An Introduction to Windows PowerShell
 
Introduction to powershell
Introduction to powershellIntroduction to powershell
Introduction to powershell
 

Ähnlich wie Dave's IT Consulting and SQL Skills

PowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationPowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationMitul Rana
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShellAaron Shilo
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0Jan Egil Ring
 
Ultimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitUltimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitKevin Kline
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET DeveloperJohn Calvert
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopMichael Blumenthal (Microsoft MVP)
 
Wsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For BeginnersWsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For Beginnersjsnover1
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopersBryan Cafferky
 
Windows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPWindows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPTim Keller
 
PowerShell for SharePoint Developers
PowerShell for SharePoint DevelopersPowerShell for SharePoint Developers
PowerShell for SharePoint DevelopersBoulos Dib
 
Holy PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood editionHoly PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood editionDave Diehl
 
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)Katrien De Graeve
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Florent BENOIT
 
PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on WindowsShahar Evron
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterKHALID C
 
PHP konferencija - Microsoft
PHP konferencija - MicrosoftPHP konferencija - Microsoft
PHP konferencija - Microsoftnusmas
 

Ähnlich wie Dave's IT Consulting and SQL Skills (20)

PowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused AutomationPowerShell Scripting and AI-infused Automation
PowerShell Scripting and AI-infused Automation
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShell
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0
 
Ultimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitUltimate Free SQL Server Toolkit
Ultimate Free SQL Server Toolkit
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET Developer
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
Wsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For BeginnersWsv315 Windows Power Shell For Beginners
Wsv315 Windows Power Shell For Beginners
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
Windows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPWindows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHP
 
PowerShell for SharePoint Developers
PowerShell for SharePoint DevelopersPowerShell for SharePoint Developers
PowerShell for SharePoint Developers
 
Holy PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood editionHoly PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood edition
 
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)
phpbenelux - Microsoft & PHP (Web Platform Installer, Bridges and Azure)
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014
 
PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on Windows
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniter
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
PHP konferencija - Microsoft
PHP konferencija - MicrosoftPHP konferencija - Microsoft
PHP konferencija - Microsoft
 

Kürzlich hochgeladen

[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 

Kürzlich hochgeladen (20)

[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 

Dave's IT Consulting and SQL Skills

  • 1.
  • 2. About Dave 0 Computer consultant since 1996 0 Background in technical support, web application design, network administration 0 Primarily Windows, SQL Server 0 Dabble in Linux, Opensource 0 Microsoft Certified SQL Trainer since 2002 0 MCITP, MCAD, MCSE 2000(I like taking tests.) 0 Lead I.T. Engineer with CheckAlt Payment Solutions providing Check21 Remote Deposit Capture solutions. 0 Enjoy helping my clients solve their I.T. problems 0 PowerShell Student and Fan  0 http://daveslog.com 0 sql@davidcobb.net I like emails.(..when they’re from people)
  • 3. Who’s my audience? 0 SQL Pros! 0 Using SQL 2012, at least in dev 0 No PowerShell experience OK 0 Some PowerShell or batch programming background. 0 Advanced users should learn something too 0 Bleeding edge:  Eager to learn the latest tools, search for the answers, and share what you know.
  • 4. Overview 0 PowerShell 3 Quick Overview 0 PowerShell basics 0 New PowerShell 3 features 0 PowerShell 3 Integrated Scripting Environment (ISE) 0 SQL 2012 0 PowerShell Cmdlets 0 SMO / SQL Management Objects 0 Resources 0 Script Explorer 0 PowerShell Community Resources
  • 5. What’s PowerShell? 0 PowerShell is a scripting environment built on .NET which provides one interface to Windows technologies like WMI and COM. 0 Cmd.exe on steroids! 0 Windows management tool of the future and today  0 It doesn’t replace TSQL, SSIS, .Net or command line, but it works with all of them. Another tool in your toolbox.
  • 6. PowerShell 101 0 3 commands you need to know * 0 Get-Help 0 Get-Command 0 Get-ChildItem 0 3 concepts you need to know * 0 Cmdlets (Verb-Noun) 0 Variables ($myvariable) 0 Piping (Get-ChildItem | Where Name -Like "*.txt“) 0 Everything else is on the web  *I’m vastly oversimplifying for the purposes of this slide. Learning PowerShell is a journey, not a destination. 
  • 7. Windows Management Framework 3.0 aka PowerShell 3 0 Out of RC Sep 4, 2012 http://tinyurl.com/windowsmanagementframework3 0 Built in to Windows 8 and Server 2012 0 Tons of Cmdlets http://tinyurl.com/powershell3 0 PowerShell Core 0 SQL, Sharepoint, SystemCenter, Azure, Hyper-V, Exchange, Lync, many others 0 Every Microsoft product will be managed with PowerShell! 0 Can install to Server 2008 R2 SP1 and 2008 SP2 to manage downlevel servers from Server 2012 0 Needs Framework 4.0 0 http://blogs.technet.com/b/servermanager/archive/tags/do wnlevel+servers/
  • 8. PowerShell changes from 2 to 3 0 Mostly backward compatible, use the same scripts. 0 Use $PSVersionTable to see current version 0 If your V2 scripts break, can still run in V2 0 PowerShell.exe –version 2 0 Invoke-V2Script
  • 9. Cool PowerShell 3 Features 0 Module Auto-Loading 0 PowerShell Web Access 0 Window Remote Management / WinRM Improvements 0 PSEXEC for PowerShell, Like Screen in Unix 0 Enable-PSRemoting -SkipNetworkProfileCheck 0 Syntax Improvements 0 Where-Object 0 $PSDefaultParameterValues 0 Hash tables as objects 0 Update-Help 0 PowerShell 3 What’s New Page http://tinyurl.com/ps3whatsnew
  • 10. PowerShell 3 Tools 0 From Microsoft 0 Integrated Scripting Environment (ISE) for PowerShell 3 0 Microsoft Script Explorer for Windows PowerShell 0 Community Resources 0 PowerShell Community Resources http://tinyurl.com/pscommunities 0 PowerGUI.org 0 PowerShell Tool Vendors 0 Sapien 0 Idera 0 -???
  • 11. PowerShell ISE 0 Integrated Scripting Environment 0 The IDE for PowerShell 0 New features in 3.0 0 Intellisense 0 Zoom 0 Command Add-On
  • 12. SQL 2012 PowerShell Extensions 0 Microsoft® Windows PowerShell Extensions for Microsoft® SQL Server® 2012 0 Part of Microsoft® SQL Server® 2012 Feature Pack 0 http://tinyurl.com/sql2012featurepack 0 Requires PoSH 2, works with PoSH 3 0 Requires SMO 0 Backward Compatible to SQL 2005
  • 13. What about SQLPSX? 0 Opensource library of dozens of SQL Cmdlets, before Microsoft provided SQLPS. 0 Still much more extensive that SQLPS 0 Wraps calls to SMO in PowerShell Cmdlets Backward compatible to SQL 2000 0 Last update March 2011 0 Still very useful for prior SQL versions 0 Partial PowerShell 3 support http://sqlpsx.codeplex.com/discussions/393377
  • 14. SQL Management Objects 0 Access all aspects of SQL Server programmatically 0 You’ll use this extensively in your PowerShell scripts 0 Developer’s Reference: http://tinyurl.com/smoguide 0 SQLPS Cmdlets wrap this functionality for basic functions 0 SQLPSX takes it a step further http://www.sqlpsx.com/
  • 15. Microsoft Script Explorer for Windows PowerShell 0Find community PowerShell scripts, modules and import them to your environment. 0(Release Candidate) Aug 9 2012 http://tinyurl.com/scriptexplorer
  • 16. Uses PowerShell Script Repositories 0 Technet Script Center http://gallery.technet.microsoft.com/ScriptCenter/ 0 PoshCode http://poshcode.org/ 0 Extendable 0 PowerShell Community Resources http://tinyurl.com/pscommunities
  • 17. Demo Topics 0 Explore SQLPS Cmdlets 0 Where-Object Syntax Enhancement 0 Get SQL Server Instances 0 Manage SQL Windows Services 0 Read SQL Error Logs 0 Query Disk Space on SQL Servers 0 Use WebClient, sp_Blitz and Export-CSV 0 Script SQL Tables 0 RestoreMultipleDBs SQL Job
  • 18. Resources 0 Whatever it is you’re doing with PowerShell, someone has probably done it before and blogged about it! 0 Take advantage of the excellent free resources out there for learning PowerShell. 0 Read other people’s code, and adapt for your needs. 0 Use the tools!
  • 19. SQL 2012 PowerShell Bloggers 0 Michael Sorens 0 http://www.simple-talk.com/sql/database-administration/practical- powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/ 0 http://www.simple-talk.com/sql/database-administration/practical-powershell- for-sql-server-developers-and-dbas-%E2%80%93-part-2/ 0 Donabel Santos 0 http://www.sqlmusings.com/ 0 Check out her webcast for Idera http://www.idera.com/Education/PowerShell-Webcasts/ 0 Wrote the book on SQL 2012 and PowerShell http://www.packtpub.com/sql-server-2012-with- powershell-v3-cookbook/book 0 Laerte Junior 0 http://www.simple-talk.com/author/laerte-junior/
  • 20. Cool Tools for PowerShell 0 SPADE – SQL installation and configuration http://sqlspade.codeplex.com/ 0 PowerShell WMI Explorer http://www.powershellpro.com/wmi-explorer/160/ 0 PowerShell Scriptomatic http://tinyurl.com/scriptomaticv2 0 PowerGUI – Wrap your scripts in a GUI http://www.sapien.com/software/powershell_studio
  • 21. PowerShell Help 0 Stackoverflow.com http://stackoverflow.com/questions/tagged/PowerShell 0 PowerShell Community Resources http://tinyurl.com/pscommunities 0 Just search the web  many great bloggers, may great resources
  • 22. Call to Action 0 Learn PowerShell 3! 0 Tons of free resources on the web 0 Play and learn 0 Use SQL 2012 with PowerShell Cmdlets from the feature pack 0 Explore scripts available on the web 0 You’re probably not the first one with that problem, find their solution and adapt it for your environment. 0 Share what you learn
  • 23. References 0 Dr Tobias Weltner’s Mastering PowerShell http://PowerShell.com/Mastering-PowerShell.pdf 0 PowerShell V2 Owners Manual http://tinyurl.com/ps2ownersmanual 0 Windows PowerShell 3.0 and Server Manager Quick Reference Guides http://tinyurl.com/ps3quickref 0 Stairway to SQL PowerShell http://www.sqlservercentral.com/stairway/91327/ 0 Running PowerShell 2 and 3 side by side http://mcpmag.com/articles/2011/12/20/powershell-2- and-3-side-by-side.aspx

Hinweis der Redaktion

  1. Demo basics
  2. View Cmdlets online
  3. Demo pswaView other new features
  4. Review ISEView Add Ons site
  5. Demo script 1, reviewcmdlets available
  6. Review SMO objectsReview SQLPSX Cmdlets
  7. Find and use Get-SQLWMI