Month: January 2014

What Do You Ask the Leaving DBA?

SQL Server
9 Comments
The last DBA had an unfortunate accident in Alaska. When the database administrator turns in her notice, what questions should you ask her in her last couple of weeks? I’m assuming, of course, that it was a friendly departure and you’ve got the full two weeks to have good conversations. Or maybe the DBA is…
Read More

Reporting in Production: SQL Server (video)

SQL Server
1 Comment
Everyone wants reports but nobody wants to build out a separate reporting server. What options do you have short of throwing up your hands in defeat? Join Jeremiah to learn about four SQL Server technologies that help with reporting in production. This session is for DBAs and developers looking for a place to get started…
Read More

Watch Brent Tune Queries

SQL Server, Videos
17 Comments
Ever wonder how someone else does it? There’s no right way or wrong way, but in this 20-minute session, you can peer over Brent’s shoulder (virtually) while he takes a few Stack Overflow queries, tries various techniques to make them faster, and shows how he measures the before-and-after results. For the links and scripts, check…
Read More

Full Scans/sec Doesn’t Mean What You Think

SQL Server
9 Comments
When is a “Full Scan” not a Full Scan? The performance counter “Full scans/sec” sounds pretty scary. If you see spikes in this counter, you’re likely to think that your queries are madly scanning all the data in your tables– there are no stylish, well performant seeks, just drunken queries spewing IO everywhere. If you…
Read More

How to Query the StackExchange Databases

SQL Server
27 Comments
Update – October 2015 – You can download a Torrent of a database (rather than a data dump) now. Most of my demos involve my favorite demo database: Stack Overflow. The Stack Exchange folks are kind enough to make all of their data available via BitTorrent for Creative Commons usage as long as you properly attribute…
Read More

Careful Adding Indexes with Always On Availability Groups

In theory, you can add indexes online with SQL Server Enterprise Edition. In theory, with AlwaysOn Availability Groups, you can add and drop indexes on the primary replica whenever you want. In theory, you can perform read-only queries on the secondaries whenever you want, and nobody gets blocked. In practice, these things don’t always add…
Read More
A terrible execution plan featuring three sort operators.

Dynamic Sorting

SQL Server
36 Comments
While working on some DMV scripts, I came up with a lazy way to have a user definable sort order in the query that seemed like pure genius. I showed it to the team and they’d never seen anything like it before. The Situation Users like to be in control. They want to define custom…
Read More

Why Are You Still Using SQL Server 2005?

SQL Server
15 Comments
The year: 2005. What was happening with the Brent Ozar Unlimited® crew? I was working on the help desk for a small company while attending Fox Valley Tech College to earn my associate degree. I think I still wanted to go into programming at that point in time! I’d never been to a user group…
Read More

You Won the Tribal Awards With Us

Blogging, SQL Server
4 Comments
The Simple-Talk Tribal Award Winners are out, and we won in two categories – Blog of the Year for the Brent Ozar Team Blog, and me as the Person You’d Most Like to Have a Beer With. See, now we’re having a beer virtually. It’s almost like – no, it’s nothing like. We need real…
Read More

SQL Server DMVs that Lie

SQL Server
21 Comments
SQL Server has amazing instrumentation. Dynamic management views and functions give you great insight into what’s happening in your SQL Server and what’s slowing it down. Interpreting these views and functions takes a lot of time, but with practice and skill you can use them to become great at performance tuning. But nothing’s perfect. Some…
Read More