Git Product home page Git Product logo

darlingdata's Introduction

Darling Data: SQL Server Troubleshooting Scripts

licence badge

Navigatory

Who are these scripts for?

You need to troubleshoot problems with SQL Server, and you need to do it fast.

You don't have time to track down a bunch of DMVs, figure out Extended Events, and you need to catch problems while they're happening. Finding out they happened later isn't cutting it anymore.

These scripts aren't a replacement for a mature monitoring tool, but they do a pretty good job of capturing important issues.

Support

Right now, all support is handled on GitHub. Please be patient; it's just me over here answering questions.

As far as compatibility goes, they only work on SQL Server 2012 and up. Older versions are either missing too much information, or simply aren't compatible (hello, Extended Events).

Questions about how the scripts work can be answered here.

If you have questions about performance tuning, or SQL Server in general, you'll wanna hit a Q&A site:

Back to top

Pressure Detector

Is your client/server relationship on the rocks? A queries timing out, dragging along, or causing CPU fans to spin out of control?

All you need to do is hit F5 to get information about which queries are currently chewing up CPU, or eating through memory.

You also get overall server CPU thread, and query memory utilization.

For a video walkthrough of the script and the results, head over here.

There's only one parameter for this procedure: @what_to_check, so if you only want CPU or memory information, you can choose one or the other.

Valid inputs for @what_to_check:

  • Both
  • CPU
  • Memory

Back to top

Human Events

Extended Events are hard. You don't know which ones to use, when to use them, or how to get useful information out of them.

This procedure is designed to make them easier for you, by creating event sessions to help you troubleshoot common scenarios:

  • Blocking
  • Query performance
  • Compiles
  • Recompiles
  • Wait Stats

The default behavior is to run a session for a set period of time to capture information, but you can also set sessions up to data to permanent tables.

Misuse of this procedure can harm performance. Be very careful about introducing observer overhead, especially when gathering query plans. Be even more careful when setting up permanent sessions!

  • For a full, up-to-date description of the parameters and valid uses for this proc, use the @help parameter.
  • For a video walkthrough of the procedure, code, etc. there's a YouTube playlist here.
  • For a text-based adventure, head to my site here.

Back to top

darlingdata's People

Contributors

erikdarling avatar erikdarlingdata avatar micke314 avatar blitzerik avatar davedustin avatar platzer avatar mnemonic23 avatar olegstrutinskii avatar wqweto avatar shaunaustin-koderly avatar

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.