A Shot of SQLEspresso

SQL Blogs by Monica Morehouse (Rathbun)

  • Home
  • Session Downloads
  • Event Calendar
  • PASS
    • Hampton Roads SQL User Group
    • SQL Saturday
    • PASS WIT VC
  • DCAC
  • Contact Me
    • Disclaimer
  • Home
  • Session Downloads
  • Event Calendar
  • PASS
    • Hampton Roads SQL User Group
    • SQL Saturday
    • PASS WIT VC
  • DCAC
  • Contact Me
    • Disclaimer

No Widgets found in the Sidebar Alt!

  • Performance Tuning

    5 Ways to Examine Cardinality Metrics

    May 2, 2018 /

    In SQL Server the query optimizer uses a cardinality estimator to answer data SELECTIVITY questions like the ones below. The optimizer uses this cardinality data, which relies heavy on statistics to get the answers and calculate a cost estimate. It takes the #of Rows to Satisfy a Predicate/Total # of Input Rows. How many rows will satisfy a single filter predicate? Multiple? WHERE How many rows will satisfy a join predicate between two tables? JOIN How many distinct values do we expect from a specific column? DISTINCT GROUP BY From this estimate the optimizer is able to find an efficient execution plan that fulfills a query request. You will note that…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Everything is coming up ACE’s

    October 28, 2015

    Ruh-Roh! SQL Server 2025 Finally Brings Us a Free Standard Developer Edition – Scooby Dooing Episode 2

    August 28, 2025

    Invest in Yourself Stop Making Excuses

    October 22, 2019
  • Back to Basics,  Misc

    Live, Learn, and Grow

    April 25, 2018 /

    Ever look back at old work and wonder what was I thinking when I did that? Or even better you mock and get disgusted over some code you stumble upon and then realize you wrote it? Today is one of those days. Lucky for me one of my clients is a company I used to work for. It’s awesome to be able to go back and work in an environment you are familiar with. However, with that, you realize when you worked there you made some decisions or wrote some code that you now shake your head at. On the other hand, it’s a really great way to see how…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Initial SQL Server Configurations

    October 19, 2015

    Install ALL Things SQL Server… What?

    November 26, 2019

    Introduction to the performance features on SQL Server on Linux

    December 4, 2019
  • Training

    Free Training 24HOP

    April 18, 2018 /

    In my sessions, I always talk about how to build your skill set when you don’t have a budget for training. Well next week April 25-26 is one of those free opportunities I take advantage of each year. 24 hours of PASS, affectionately referred to as 24HOP, is an online training event comprised of 24 sessions in a day free training. Register here http://www.pass.org/24hours/2018/april/About.aspx One technical session is given every hour around the clock, so no matter what time zone you are in you can easily catch a session or two. It makes it easy to stream during work, during lunch or even just sit and watch it streamed to…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Comparing Execution Plans

    June 19, 2019

    Does Your Code Have a Preamble?

    October 18, 2017

    Filtered Index Basics

    May 22, 2019
  • Back to Basics

    Template Explorer Gold Mine in SQL Server Management Studio

    March 27, 2018 /

    Sometimes as a newbie to SQL Server using SQL Server Management Studio (SSMS) you don’t know about the little gold mines that are within the product that help you be a better DBA or Developer. Template Explorer is one of those. To get to it go to VIEW from the taskbar then Template Explorer. Alternatively, you can reach it with keyboard shortcut Control+Alt+T. When you click on it, another side window will appear showing you a list of all templates available within Management Studio. A basic example would be creating a new stored procedure, this template provides an easy starting point. Microsoft has even gone so far as to incorporate…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Scooby Dooing Episode 10: The Case of the Copy-and-Paste Consultant

    November 4, 2025

    Sorting in Stored Procedures – Food for Thought

    January 29, 2020

    What is Automatic Tuning in Azure SQL Database

    August 28, 2018
  • Back to Basics,  Configurations

    SQL Server Updates Tricked Me for Years

    February 21, 2018 /

    When applying a new SQL Server cumulative update, hot fix, or upgrade SQL Server doesn’t always apply all the fixes in the patch. When you upgrade the database engine in-place, databases you had already stay at their pre-upgrade compatibility level, which means they run under the older set of optimizer rules. Additionally, many optimizer fixes are not turned on. The reason for this is that while they may improve overall query performance, they may have negative impact to some queries. Microsoft actively avoids making breaking changes to its software. To avoid any negative performance impacts, Microsoft has hidden optimizer fixes behind a trace flag, giving admins the option to enable…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    T-SQL Tuesday #84 – Helping New Speakers

    November 8, 2016

    Wait… Could This Be the End of Index Maintenance?

    November 5, 2026

    Does Your Code Have a Preamble?

    October 18, 2017
  • Misc

    Bloggers Should Have Reach

    February 14, 2018 /

    One of my goals for 2018 is to expand the reach of my blog. As a blogger starting out I had my own site I posted to, but my blogs only reached those who followed me on Twitter, Facebook, Google + and LinkedIn. My blog automatically posts to these three sites using a WordPress Jetpack Plugin called Publicize. After a few months, I discovered that syndication could be setup on other sites such as SQL Server Central.  This allowed more people the opportunity to read my writing and expand my reach. Many sites, such as these will even send your blog out in newsletters like Database Weekly. Starting last week,…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Caution When Dropping Unused Indexes on an Azure SQL Database

    August 12, 2020

    System-Versioned Temporal Tables

    August 30, 2017

    Add Azure Cache for Redis to Your Azure SQL Performance Tuning Toolbox

    July 14, 2021
  • Lone DBA

    Expanding My Reach

    February 7, 2018 /

    I am so thrilled to have the opportunity to expand my writing with my first Simple-Talk article posted.  Simple- Talk is technical journal and community hub from Redgate. It in I discuss my passion for my work as a Lone DBA.   You can find the full article using the link below. https://www.red-gate.com/simple-talk/opinion/career/survive-lone-dba/

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Static Data Masking (SSMS 18.0 Preview)

    December 19, 2018

    Memory Optimized Tables in SQL Server

    January 8, 2020

    Being a Woman in the SQL Community

    February 26, 2020
  • Misc,  Quick and Dirty

    Can You Hear It Now?

    January 31, 2018 /

    Here is a quick blog to show you something I discovered that I didn’t know existed. I was on a Skype call and noted that the presentation I had been watching was no longer audible. I tried messing with my volume, I made sure my sounds weren’t muted and played around with my speakers and still nothing. I could hear the skype call without issues, but I wanted to multitask and continue to listen to the presentation. Finally, a light bulb went off and I thought maybe windows was “doing me a favor” and turning off all noises why I am on Skype. Sure, enough it was. If you look…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Are My SQL Server Indexes Being Used?

    August 28, 2019

    Understanding Columnstore Indexes in SQL Server Part 1

    June 26, 2019

    Trouble Shooting Little Jewel -Windows PSR (Problem Steps Recorder)

    March 29, 2017
  • Lone DBA

    Maintaining Balance

    January 24, 2018 /

    Last week, I got the chance to give my I’m It Survival Tips for the Lone DBA  in a webcast for the first time thanks to the PASS Women in Technology Virtual Chapter. This is by far my favorite session to give because it’s real life and can pertain to all us. Whether you are a Lone DBA or part of a team, we all encounter the struggles when handling a heavy work load. I always love the interactions I get from this session. It allows us to share our stories and learn from each other. As a Lone DBA you are on call 24/7. You are required to stop everything and fix things…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    Summit Submission Feedback Response

    June 28, 2016

    It’s time to speak again!

    December 1, 2015

    The Gang vs. Jason: Unmasking JSON’s Secrets in SQL Server 2025- Scooby Dooing Episode 7

    October 1, 2025
  • Back to Basics,  Encryption

    How to get started with Always Encrypted for Beginners Part 3: One Two Punch

    January 17, 2018 /

    A few weeks ago, I wrote Part 1 and 2 of this series, which was a beginner’s guide to Always Encrypted. In part 3, I am going to go over what road blocks I ran into when trying to implement this solution for a client. The goal of the project was to prevent the DBA from being able to view salary information, while still allowing the application to function without issue. We were able to encrypt the data easily, but the entire process was not without issues. We had to remove default constraint values to get it to implemented. Always Encrypted does not currently support constraints. Fortunately, the defaulted zero…

    Read More
    Monica Morehouse (Rathbun)

    Related Posts

    TIL: Microsoft Azure Part 1

    May 17, 2017

    The Case of the Forgotten Compatibility Mode – Scooby Dooing Episode 3

    September 3, 2025

    The Gang vs. Jason: Unmasking JSON’s Secrets in SQL Server 2025- Scooby Dooing Episode 7

    October 1, 2025
910111213

About Me

Monica Morehouse (Rathbun)

Microsoft MVP, Performancing Tuning Expert, Leader Hampton Roads SQL Server User Group, Read More…

Consulting

Sessions List

Favorite Tidbits

  • Reminder to Developers

Topic Categories

  • Azure
  • Back to Basics
  • Configurations
  • Data Masking
  • DevOps
  • Encryption
  • Idera Ace
  • Important Links
  • Indexes
  • Lone DBA
  • Misc
  • MVP
  • New SQL Version
  • Performance Tuning
  • Posts with Scripts
  • Problems & Solutions
  • Quick and Dirty
  • Security
  • Speaking
  • SQL Family
  • SQLSaturday
  • SSRS
  • Summit
  • Training
  • TSQL Tuesday
  • Uncategorized

Top Posts & Pages

  • DMV’s for the Beginner
    DMV’s for the Beginner
  • Wait… Could This Be the End of Index Maintenance?
    Wait… Could This Be the End of Index Maintenance?
  • Resizing Tempdb (When TEMPDB Wont Shrink)
    Resizing Tempdb (When TEMPDB Wont Shrink)
  • What’s a Key Lookup?
    What’s a Key Lookup?
  • Understanding Columnstore Indexes in SQL Server Part 2
    Understanding Columnstore Indexes in SQL Server Part 2
  • Synchronous VS Asynchronous Statistics Updates
    Synchronous VS Asynchronous Statistics Updates
  • Understanding Columnstore Indexes in SQL Server Part 1
    Understanding Columnstore Indexes in SQL Server Part 1
  • SQL Server Is Still Here and Microsoft Is Still Investing in It
    SQL Server Is Still Here and Microsoft Is Still Investing in It
  • SQL Index Creation Using DROP EXISTING= ON
    SQL Index Creation Using DROP EXISTING= ON
  • SSMS Is Getting Smarter—and This Isn't Just About Writing SQL
    SSMS Is Getting Smarter—and This Isn't Just About Writing SQL
Graceful Pro Theme by Optima Themes - 2026 ©
Loading Comments...