Git Product home page Git Product logo

vladdba / psblitz Goto Github PK

View Code? Open in Web Editor NEW
63.0 5.0 17.0 20.73 MB

a PowerShell-based tool that outputs SQL Server health and performance diagnostics data to either Excel or HTML, and saves execution plans and deadlock graphs as .sqlplan and .xdl files.

License: Other

PowerShell 13.45% TSQL 75.32% PLpgSQL 10.01% JavaScript 1.08% CSS 0.14%
sql-server sql-server-performance-scripts execution-plan wait-stats deadlock sp-blitz sp-blitzcache sp-blitzfirst sp-blitzindex deadlock-graph

psblitz's Introduction

Hi there πŸ‘‹

My name is Vlad Drumea

I've been working with SQL Server for the past 12+ years focusing on query performance, database security, and automation, with the bulk of my experience being gained while working with large production environments.
I am a Data Platform MCSE, as well as an OSCP and PNPT, with a passion for InfoSec and PowerShell.
In my spare time I work on PSBlitz, post on my blog, and play around in my home lab.

πŸ“ˆ My GitHub Stats

hasherezade's GitHub Stats

Projects I’m currently working on:

  • PSBlitz - A PowerShell-based tool that outputs SQL Server health and performance diagnostics data to either Excel or HTML, and saves execution plans and deadlock graphs as .sqlplan and .xdl files
  • SQL-Server-Scripts - Various T-SQL/PowerShell SQL Server-related scripts.

On the Internet


psblitz's People

Contributors

vladdba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

psblitz's Issues

PSBlitz errors out when -ServerName's value is in the hostname,port format

When running PSBlitz in script mode and providing hostname,port for the server, it errors out with the following message:

PS F:\PSBlitz> .\PSBlitz.ps1 localhost,1450
F:\PSBlitz\PSBlitz.ps1 : Cannot process argument transformation on parameter 'ServerName'.
Cannot convert value to type System.String.
At line:1 char:15
+ .\PSBlitz.ps1 localhost,1450
+               ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [PSBlitz.ps1], ParameterBindingArgumentTransf
   ormationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,PSBlitz.ps1

Narrow down sp_BlitzLock to last 15 days instead of 30

If an instance is seeing multiple daily deadlocks occurring, they're most likely happening on the same objects during executions of the same or similar queries. There's no reason to spend time getting 30 days worth of deadlocks.

Excel template ends up saving changes when Excel has AutoSave = On

If PSBlitz.ps1 is ran on a computer that has Excel's AutoSave option enabled, all the temporary changes done on the template during execution end up getting saved.
This can cause result inconsistencies (with data from previous executions still being present in the template) or missing sheets if a default check is ran before an in-depth one.

Save changes to Excel output more often

Current behavior:
The Excel output file is save once at the end of the script.
Desired behavior:
Changes are saved every time a sheet or a section of a sheet is populated with data

Change when spBlitzFirst_NonSPLatest.sql gets executed

Change in the order of execution so that spBlitzFirst_NonSPLatest.sql gets executed right after spBlitzFirst_NonSPLatest.sql to avoid having to wait for spBlitzCache_NonSPLatest.sql to finish on instances with lots of execution plans.

Update README

Update README to contain information about -BlitzWhoDelay introduced with #53

Script execution was interrupted - v2.2.0

With latest version (v2.2.0), when i execute:
.\PSBlitz.ps1 XXXPRODSQL01\XX1 -IsIndepth Y -CheckDB CORESQL7
i obtain this error:
"Retrieving instance information.
Script execution was interrupted.
Finishing up..."

With the older version v2.1.1 the same command mentioned above works without any problems.

Add option to create a zip archive of the output files

Add -ZipOutput parameter that can be used by:

  1. either when running in command line mode like
.\PSBlitz.ps1 Hostname\Instance -ZipOutput Y
  1. Or by prompting the user in interactive mode (right click > run with PowerShell).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.