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

    Importance of Statistics in SQL Server

    May 30, 2018

    Cycle SQL Server Error Logs

    September 26, 2018

    T-SQL Tuesday #84 – Helping New Speakers

    November 8, 2016
  • 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

    This Idera ACE Has Been Busy

    August 23, 2016

    So How Did It Go?

    September 28, 2015

    Invest in Yourself Stop Making Excuses

    October 22, 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

    Quick Model Database Tidbit

    October 30, 2017

    Solving SQL Server Mysteries with a Whole Gang of Sleuths -Scooby Dooing Episode 4

    September 10, 2025

    So How Did It Go?

    September 28, 2015
  • 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

    Synchronous VS Asynchronous Statistics Updates

    October 25, 2017

    Invest in Yourself Stop Making Excuses

    October 22, 2019

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

    October 1, 2025
  • 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

    Bloggers Should Have Reach

    February 14, 2018

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

    September 3, 2025

    SSMS Is Getting Smarter—and This Isn’t Just About Writing SQL

    November 11, 2026
  • 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

    So How Did It Go?

    September 28, 2015

    Solving SQL Server Mysteries with a Whole Gang of Sleuths -Scooby Dooing Episode 4

    September 10, 2025

    Are My SQL Server Indexes Being Used?

    August 28, 2019
  • 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

    QUICK & DIRTY: Table name change for all stored procedures

    December 10, 2015

    Importance of Statistics in SQL Server

    May 30, 2018

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

    October 1, 2025
  • 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

    Invest in Yourself Stop Making Excuses

    October 22, 2019

    SQL Server Data Collection and Management Data Warehouse

    October 3, 2018

    Importance of Statistics in SQL Server

    May 30, 2018
  • 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

    In Memory Table Indexes

    January 22, 2020

    Understanding Columnstore Indexes in SQL Server Part 3

    July 17, 2019

    Bloggers Should Have Reach

    February 14, 2018
  • 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

    What is Automatic Tuning in Azure SQL Database

    August 28, 2018

    Ooops! Was that me? (Blog Challenge)

    January 10, 2017

    Save Money On Your Azure Monthly SQL Database Bill

    August 22, 2018
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

  • SSMS Is Getting Smarter—and This Isn't Just About Writing SQL
    SSMS Is Getting Smarter—and This Isn't Just About Writing SQL
  • SQL Index Creation Using DROP EXISTING= ON
    SQL Index Creation Using DROP EXISTING= ON
  • Wait… Could This Be the End of Index Maintenance?
    Wait… Could This Be the End of Index Maintenance?
  • Understanding Columnstore Indexes in SQL Server Part 1
    Understanding Columnstore Indexes in SQL Server Part 1
  • DMV’s for the Beginner
    DMV’s for the Beginner
  • What is Implicit Conversion?
    What is Implicit Conversion?
  • It's All in the Name, Index Naming Conventions
    It's All in the Name, Index Naming Conventions
  • VLFs the Forgotten Foe
    VLFs the Forgotten Foe
  • Hide and Group Columns in SSRS Using a Parameter
    Hide and Group Columns in SSRS Using a Parameter
  • Enable Mail Profile - Back to Basics
    Enable Mail Profile - Back to Basics
Graceful Pro Theme by Optima Themes - 2026 ©
Loading Comments...