Search Results for “extended event”

backup being run from the sa account

Who’s Backing Up That Database?

Backup and Recovery
10 Comments
A question came up on Twitter recently– how you can you figure out where a rogue backup is coming from? I’ve run into this question with clients before. In an enterprise environment where backup tools come and go, it’s not unusual to find backups being run by some mysterious account. By the way, when’s the…
Read More

“It’s Slow” Is Not A Metric

Wait Stats
7 Comments
When I start a SQL Server Critical Care with a client, the first thing I ask is, “What is your #1 pain point? Where does it hurt?” The answer I hear most often is, “The server is too slow”. I’m a runner. If I was able to run a 5K race at an 8:30 per…
Read More

Measuring Performance Can Slow SQL Server Down

SQL Server
9 Comments
I’ve written a terrible query. It might be the worst query in the world. Sure, there are other queries that may be slower, but this query is terrible and elegantly short. The query is gloriously bad for a two reasons: It’s incredibly inefficient in the way it uses a scalar function Observing the query’s performance can make…
Read More

The Most Confusing Words, Phrases, and Acronyms in SQL Server

Humor
13 Comments
Words are hard. Acronyms are even harder. Here’s the words that give me the most trouble when talking to people about SQL Server. And thanks to all my Twitter friends quoted here for their suggestions! Replication “I have a question about replication…” “Which kind? Transactional? Merge? Peer to Peer?” “Availability Groups.” Technically, the word “replication”…
Read More
Pocket Square

Slow Datasets

sp_BlitzRS® Result: Slow Datasets Good news! You get to blame something other than the Report Server for this! (Well, not quite.) Slow Datasets are identified by having an average TimeDataRetrieval value of 5 seconds or longer. This means once the datasets are requested from the data source, it takes 5+ seconds before those results come back…
Read More
Pocket Square

TempDB Spills

1 Comment
sp_BlitzCache™ Result: TempDB Spills Queries are spilling out to tempdb. This means that SQL Server has poorly estimated the amount of rows that will be returned from an operator. When the row estimate is wrong, the memory grant will be wrong; SQL Server is going to have to use extra space on disk to do…
Read More
Pocket Square

Frequently Executed Queries

sp_BlitzCache™ Result: Frequently Executed Queries Queries are being executed many times per second. Even when these queries are lightweight, they still put load on the SQL Server. Because you’re reading this, these queries are one of the top consumers of resources on your SQL Server. Fast running queries can be difficult to find with SQL…
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
Pocket Square

Locking and Blocking in SQL Server

1 Comment
Locking and Blocking in SQL Server SQL Server loves locks. SQL Server uses “pessimistic” locking by default– your queries are naturally defensive. This can lead to blocking problems that keep you from scaling SQL Server. Free video training class – before you troubleshoot blocking and deadlocks, start with How to Think Like the Engine. It’s a…
Read More

What?! Queries are Failing in My SQL Server?

SQL Server
41 Comments
Help is on the way I came across an interesting case recently where queries were failing in a high transaction SQL Server. We knew that queries were occasionally failing with error severity 20 because SQL Server Agent alerts were periodically firing. However, those built in alerts don’t capture exactly what has failed– they just say…
Read More