Launch week: the Season Pass & Fundamentals Week are 50% off — ends in 6d 18h 30mSee the sale

Category: Tools

T-SQL & Development

Community Tools Month: Choose Your Character

This month on the blog is Community Tools Month, and I'm going to be talking about some of the most useful and influential tools out there.

You can't learn them all - *I* can't learn them all - because there just aren't enough hours in the day to do your work, keep your skills sharp, take care of yourself, and take care of the ones you love.

Read more about Community Tools Month: Choose Your Character 10 comments — Join the discussion

How to Find Cool Questions and Answers on DBA.StackExchange.com

DBA.StackExchange.com is a Stack Overflow site that's specifically targeted at database administrators. There tend to be some pretty interesting questions in there - not just for SQL Server, but all kinds of databases - but at the same time, there's also a lot of noise. To help find fun questions, I use The Power of…

Read more about How to Find Cool Questions and Answers on DBA.StackExchange.com Be the first to comment

Announcing the Consultant Toolkit: Now Available in the European Union, too

Yesterday, I got a barrage of emails and LinkedIn messages that went like this: Hey Brent, about your new consultant toolkit: I really love that idea and would want to get my hands on it. Unfortunately i originate in the EU. I know about your reasoning around not selling to EU members and I don’t…

Read more about Announcing the Consultant Toolkit: Now Available in the European Union, too 17 comments — Join the discussion

Consultants: want a utility to gather SQL Server data?

When you're a consultant, you need to get diagnostic data from your clients.

When you're talking to a new sales prospect - do you waste a lot of time asking basic investigation questions like what version they're on, how much data they have, what kinds of workloads they have? You know they're not really giving you accurate answers because often they just flat out don't know.

Read more about Consultants: want a utility to gather SQL Server data? 56 comments — Join the discussion

A Gentle Introduction To the Stack Overflow Schema

Stack: Dumped
Wanna learn the schema of the free Stack Overflow public database? If you want the Full Nelson, it's all documented here. That's a great resource if you're looking to learn more, but generally when you're looking at a data dump and building up demo queries, you wanna get an idea of where the data skews, and how the tables relate.

Read more about A Gentle Introduction To the Stack Overflow Schema 11 comments — Join the discussion

Updated (and Smaller!) Stack Overflow Demo Databases

The nice folks over at StackOverflow.com (shout out, @onlybluefeet) updated their public data dump last month. This time around, I'm giving you two options:

Full size circa 2017/12: 19GB torrent (magnet.) Expands to a ~137GB SQL Server 2008 database. Because it's so large, we distribute it with BitTorrent - if you're new to that, here's detailed BitTorrent instructions.

Read more about Updated (and Smaller!) Stack Overflow Demo Databases 3 comments — Join the discussion

Updated Stack Overflow Database Dump Importer v1.4

The nice folks at Stack Overflow publish their entire data set (data included) in XML format. It's tons of fun for demos, but you need a way to get it into a relational database.

The Stack Overflow Data Dump Importer (SODDI) makes this point-and-click easy. Just download the latest release, install it, download the XML exports, and you can import it into MySQL, SQLite, or Microsoft SQL Server.

Read more about Updated Stack Overflow Database Dump Importer v1.4 Be the first to comment

Things Your SQL Server Monitoring Software Should Tell You

In our work as consultants, we see a lot of shops that have a monitoring tool, and yet they're still not able to get to the root cause of a SQL Server performance or reliability issue. In many of these cases, the problem isn't the people: the problem is that they bought a tool that doesn't do what they think it'll do.

Read more about Things Your SQL Server Monitoring Software Should Tell You 47 comments — Join the discussion
Production DBA

Ola Hallengren’s Maintenance Scripts are Now on Github.

For some of you, the headline is self-explanatory, and you just want the URL, so here it is: https://github.com/olahallengren/sql-server-maintenance-solution For the rest of you, here's what it means. What are Ola Hallengren's maintenance scripts? Ola Hallengren's maintenance scripts are a widely used replacement for maintenance plans. His backup, integrity check, and index optimization stored procedures are…

Read more about Ola Hallengren’s Maintenance Scripts are Now on Github. 2 comments — Join the discussion

Stats Week: Only Updating Statistics With Ola Hallengren’s Scripts

I hate rebuilding indexes
There. I said it. It's not fun. I don't care all that much for reorgs, either. They're less intrusive, but man, that LOB compaction stuff can really be time consuming. What I do like is updating statistics. Doing that can be the kick in the bad plan pants that you need to get things running smoothly again.

Read more about Stats Week: Only Updating Statistics With Ola Hallengren’s Scripts 46 comments — Join the discussion
Production DBA

How to Configure Always On AG Backups with Ola Hallengren’s Scripts

With SQL Server AlwaysOn Availability Groups, you can offload backups to a replica rather than running them on the primary. Here's how to do it:

1. Install Ola Hallengren's utility scripts on all of the replicas. During the install, it creates a laundry list of SQL Agent jobs, but doesn't set up schedules for any of them. More on that in a couple of steps.

Read more about How to Configure Always On AG Backups with Ola Hallengren’s Scripts 91 comments — Join the discussion

How to Configure Ola Hallengren’s IndexOptimize Maintenance Script

If you're a production database administrator responsible for backups, corruption checking, and index maintenance on SQL Server, try Ola Hallengren's free database maintenance scripts. They're better than yours (trust me), and they give you more flexibility than built-in maintenance plans.

However, the index maintenance defaults aren't good for everyone. Here's how they ship:
[crayon-6a4899ea65c29312749941/]
The defaults on some of these parameters are a little tricky:

Read more about How to Configure Ola Hallengren’s IndexOptimize Maintenance Script 138 comments — Join the discussion