SQL Server

The Worst Database User

SQL Server
30 Comments
“Can you tell me a little about this code?” I asked, keeping my best poker face on. “I’m really proud of it. It gathers a whole bunch of stuff from accounting, human resources, manufacturing, you name it. I want to be able to track how we’re doing over time.” He nearly hovered in his chair…
Read More

The Evolution of SQL Server Instrumentation

SQL Server
3 Comments
One of my favorite things about SQL Server is the instrumentation. It’s incredibly good at giving you information about what’s going on in the database engine and query optimizer. Want to know why your server is slow? Need to know what made it go offline? You have a lot of tools available. This hasn’t always…
Read More

San Diego Class Recap

SQL Server
2 Comments
We had a lot of fun this month teaching SQL Server classes at the San Diego Harbor Hilton. (We wrote about how we picked the cities earlier.) Even when we teach, we learn, and then we share what we learned, so here we are. San Diego Harbor Hilton We like to try new things with our…
Read More

Statistics Matter on Temp Tables, Too

SQL Server, TempDB
18 Comments
Temp tables are like real tables, just a little tricker. When you’re starting out writing TSQL, it’s easy to want to do all your work in a single query. You learn about derived sub-queries, CROSS APPLY statements, and common table expressions. Suddenly, each of your queries is so complex that you hardly know what you’re…
Read More

What If You Knew The Server Would Crash Today?

SQL Server
7 Comments
This morning you woke up with a terrible premonition – you were absolutely sure your most important production database server was going to crash today. What would you do? Step 0: stop for coffee, because it’s gonna be a long day. Here’s a quick list of places to start: Identify where the most recent backups…
Read More

Satya Slips a SQL Server Standard Secret?

SQL Server
3 Comments
Everybody wants to know the next SQL Server release date, pricing, and feature lists, but anybody who knows those facts is bound by non-disclosure agreement and can’t say it publicly. Every now and then, though, we get lucky and someone from Microsoft slips up. That’s why I pay particular attention to Microsoft interviews as we…
Read More

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