SQL Server

What’s Covered in the Senior DBA Class of 2016?

SQL Server
13 Comments
You’re a SQL Server DBA who is ready to advance to the next level in your career but aren’t sure how to fully master your environment and drive the right architectural changes. That’s about to change in one week of learning and adventure with me, Brent Ozar. Join me to learn how size, architect, maintain, and troubleshoot…
Read More

Give Your T-SQL a Semicolonoscopy

SQL Server, T-SQL
39 Comments
In theory, all of your T-SQL statements are supposed to end with a semicolon, like this: Transact-SQL SELECT * FROM dbo.Posts; SELECT * FROM dbo.Comments; GO 123 SELECT * FROM dbo.Posts;SELECT * FROM dbo.Comments;GO Why? Well, SQL Server 2005’s Books Online says: Many code examples use a semicolon (;) as a Transact-SQL statement terminator. Although the…
Read More

We’re now a Microsoft Gold Partner.

SQL Server
13 Comments
In our never-ending quest for world domination (for values of “world” and “domination”), we’re now a Gold Data Platform partner. The Original Gold Partner (Photo by Rafael Marquez) What does this mean? Well, it’s an achievement badge, and we like unlocking new achievements, so, uh…yeah. No, seriously, some company executives only want to deal with Gold Partners, so…
Read More

Filtered Indexes: Just Add Includes

I found a quirky thing recently While playing with filtered indexes, I noticed something odd. By ‘playing with’ I mean ‘calling them horrible names’ and ‘admiring the way other platforms implemented them‘. I sort of wrote about a similar topic in discussing indexing for windowing functions. It turns out that a recent annoyance could also…
Read More

Brent’s Bad Idea Jeans: Stop People From Changing Tables with This One Trick

Bad Idea Jeans, Humor, SQL Server
21 Comments
Developers hate his bad idea jeans: Transact-SQL CREATE VIEW dbo.StopThemDead WITH SCHEMABINDING AS SELECT COUNT(*) FROM dbo.Table1 UNION ALL SELECT COUNT(*) FROM dbo.Table2 UNION ALL.... 123456 CREATE VIEW dbo.StopThemDead WITH SCHEMABINDINGASSELECT COUNT(*) FROM dbo.Table1UNION ALLSELECT COUNT(*) FROM dbo.Table2UNION ALL.... Presto, the schemabinding option means no one can change the underlying tables. (At least, until they…
Read More

Is My SQL Server Too Big for Virtualization or the Cloud?

SQL Server
15 Comments
Let’s set size aside for a second. Here’s the order in which you should try new technologies – whether it’s virtualization, cloud, storage, or whatever: Development servers with less than 100GB of data Production servers with less than 100GB of data Development servers with <1TB Production servers with <1TB Development servers with >1TB Production servers with…
Read More

#FreeCon 2015 PASS Summit Recap

SQL Server
4 Comments
We believe that when you’re at a community event, the most valuable thing isn’t what’s up on the screen. Instead, it’s building relationships with the people around you. With that in mind, over the last five years, we’ve run a series of FreeCons – totally free networking events for the SQL Server community. This year’s…
Read More

Interviewing: How to Test TSQL Writing Skills

SQL Server
12 Comments
“Sure, I write great queries!” We sometimes help clients interview DBAs and Developers for their team. Requirements vary depending by position, but sometimes it’s important to test a candidate’s TSQL skills. While I can test candidates thoroughly on strategies for TSQL (when they’d use certain constructs, the pros and cons of various approaches), if what…
Read More