Author: Doug Lane

When I’m not shooting videos in stunning 70mm Panavision (TM) for Brent Ozar Unlimited, I’m out running or having lightsaber duels with my two marvelous children. You may also spot me in my natural habitat: SQL Server User Group meetings, SQL Saturdays, or the PASS Summit.
T-SQL & Development

The Five Stages of Dynamic SQL Grief

Dynamic SQL can be an incredibly powerful tool in the pocket of a SQL Server developer. Developers frequently express amazement at the level of flexibility dynamic SQL offers, an astonishment at how quickly things get out of hand, and finally the humbling realization that such machinery nearly tore their limbs off. This process can be…

Read more about The Five Stages of Dynamic SQL Grief 18 comments — Join the discussion

Three Easy Tweaks to Tune Up Your SQL Server

I've been doing SQL Critical Care® work with clients for over a year now. It's absolutely true that every client's situation is different and needs special attention. However, I've found that there's a short list of issues that nearly all clients have in common. Drawing from that list, here are the top three high-impact, low-effort areas you can work…

Read more about Three Easy Tweaks to Tune Up Your SQL Server 18 comments — Join the discussion

Five Interview Questions to Ask SQL Server Developers

When it comes to hiring a SQL Server developer, we can pepper candidates with HR-type questions ("Tell me about a time when you had a conflict with a co-worker and how you resolved it.") but that doesn't give us a good sense of a developer's T-SQL skill level. Here are five questions that will give you a good idea how experienced and skilled a developer is.

Read more about Five Interview Questions to Ask SQL Server Developers 71 comments — Join the discussion
T-SQL & Development

The Top 3 Mistakes T-SQL Developers Make

Over the years, I've done all kinds of awful things with T-SQL and made countless mistakes. Some were harmless; others were borderline catastrophic (exciting times!). I was curious what kind of horrible mistakes other people make, so I threw the question out to Twitter. Every answer I got was unique, which was both telling (so…

Read more about The Top 3 Mistakes T-SQL Developers Make 31 comments — Join the discussion

Why You Simply Must Have a Date Table [Video]

As a developer, one of the things I can no longer live without is a date table. Who wants to type DATENAME and DATEPART over and over again? Not this guy, and once you have a date table, you won't want to either.

In this 16-minute video, I'll give you four reasons why you should stop writing so many date functions and concatenations, and start looking them up in a table instead.

Read more about Why You Simply Must Have a Date Table [Video] 24 comments — Join the discussion
Production DBA

Doug Broke It: Reporting Services Encryption Keys [Video]

In this 5-minute video, Doug tells about the time he deleted the Reporting Services encryption key, and what it took to fix the damage. You'll learn about what the SSRS encryption key protects, as well when to:

Back up the encryption key
Restore the encryption key
Change the encryption key
Delete the encryption key

Read more about Doug Broke It: Reporting Services Encryption Keys [Video] 3 comments — Join the discussion
T-SQL & Development

Refactoring T-SQL with Windowing Functions

You've been querying comparative numbers like Year To Date and Same Period Last Year by using tedious CTEs and subqueries. Beginning with SQL Server 2012, getting these numbers is easier than ever! Join Doug for a 30-minute T-SQL tune-up using window functions that will cut down dramatically on the amount of code you need to write.

Read more about Refactoring T-SQL with Windowing Functions 6 comments — Join the discussion