SQL Server

What is the PREEMPTIVE_DEBUG Wait in SQL Server?

SQL Server
2 Comments
Recently we got an email asking for help from a DBA who was concerned about a high percentage of the PREEMPTIVE_DEBUG wait on a SQL Server. They were investigating poor performance and had searched the internet high and low and not found information on what this wait means. They were stumped. What to Do When You Find an Unusual…
Read More

Read Committed Snapshot Isolation: Writers Block Writers (RCSI)

When learning how Read Committed Snapshot Isolation works in SQL Server, it can be a little tricky to understand how writes behave. The basic way I remember this is “Readers don’t block writers, writers don’t block readers, but writers still block writers.” But that’s not so easy to understand. Let’s take a look at a simple test…
Read More

Rebuild or Reorganize? How to Set Up Index Maintenance in SQL Server (video)

SQL Server
8 Comments
Index maintenance is confusing. Should you use maintenance plans or customized SQL Agent jobs? Join Kendra to learn the difference between index ‘rebuild’ and ‘reorganize’ commands, and how to avoid the pitfalls of maintenance plans in SQL Server. https://www.youtube.com/watch?v=6nJKIeJC2lg Interested in trying out sp_BlitzTrace™ yourself? Download it in our free SQL Server download pack. You…
Read More

What Is Commodity Hardware?

kCura Relativity, SQL Server
8 Comments
You may have heard the term “commodity hardware” thrown around when describing solutions like Redis, Elasticsearch, or kCura’s new Data Grid. Commodity hardware refers to cheap, standardized servers that are easy to buy off the shelf from any vendor. Here’s a typical example of a 2u, 2CPU commodity hardware server: Supermicro SYS-1028R-TDW 1U rack server Two Xeon E5-2600…
Read More

SQL Server Tasks You Probably Shouldn’t Automate

SQL Server
24 Comments
Every now and then I run across an automated script that does something a little suspicious. I’m not saying you should never put these things into a script, but if you do, seriously think about the surprise gotchas when someone runs the script: DBCC commands other than CHECKDB sp_configure (and especially RECONFIGURE afterwards) ALTER SERVER CONFIGURATION…
Read More

Who’s Allowed to Add Indexes to ISV Apps?

Performance tuning of independent software vendor (ISV) databases is a little tricky. To understand who does what, let’s think through all of the work required with building and hosting a database application: Who adds indexes and tunes queries? Typically the two parties involved – the vendor and the customer – start at opposite ends of…
Read More

Doug Broke It: Microsoft Access Data Types [Video]

SQL Server
5 Comments
In this video, Doug talks about how changing a column’s data type in SQL Server can be dangerous when there are Access clients using it, and a reference table to help avoid type mismatches when planning data type changes. Click here to see the list of SQL Server data types according to Access. https://youtu.be/vSBnnpcxvjc  
Read More

Brent’s Bad Idea Jeans [Video]

Bad Idea Jeans, Humor, SQL Server
9 Comments
Over the years, I’ve come up with some rather “interesting” answers to SQL Server problems including: Warming up SQL Server’s buffer pool by selecting all the data from all the tables Creating indexes with triggers Adding nonclustered indexes to clustered columnstore indexes Compressing backups the hard way Putting databases on a RAM drive In this 20-minute…
Read More

How Would You Change Always On Availability Groups?

SQL Server 2012 introduced AlwaysOn Availability Groups, a way to achieve high availability, disaster recovery, and scale-out reads. SQL 2014 brought some improvements around higher uptime and more scale-out, and all signs point to continued improvements in the next version of SQL Server, too. (I love it when Microsoft brings out features like this and…
Read More

SQL Server’s Cost Threshold for Parallelism

SQL Server
20 Comments
“Should a query get to use more than one CPU core?” That’s an important question for your SQL Server. If you’re not sure what parallelism is, get started by exploring the mysteries of CXPACKET with Brent. He’ll introduce you to the the setting, ‘Cost Threshold for Parallelism’. Let’s test Cost Threshold for Parallelism I generate an estimated…
Read More

#SQLPASS Summit 2014 Keynote LiveBlog

#SQLPass, SQL Server
7 Comments
10:03AM – Ranga back onstage to finish things up. Thanking Pier 1 for letting them share the exploratory work. And we’re out! 10:00AM – Power BI adding a new authoring and editing mode. James removes the pie chart and replaces it on the fly. Now that is knowing your audience – nice job. 9:58AM –…
Read More