Category: SQL Server

SQL Server 2014 Standard Edition Sucks, and It’s All Your Fault [UPDATE]

Every release lately, Microsoft has been turning the screws on Standard Edition users. We get less CPU power, less memory, and few (if any) new features. According to Microsoft, if you want to use more than $500 worth of memory in your server, you have to step up to Enterprise Edition. Seriously? Standard Edition licensing…

Read more about SQL Server 2014 Standard Edition Sucks, and It’s All Your Fault [UPDATE] 129 comments — Join the discussion

New DMVs in SQL Server 2014 CTP1

When you download and start playing with SQL Server 2014 CTP1, here's a few of the new instrumentation tables and views:New Internal Tablesplan_persist_context_settingsplan_persist_plan - Hey, lookie there! Implies that we can persist execution plans beyond a SQL Server service restart.plan_persist_queryplan_persist_query_textplan_persist_runtime_statsplan_persist_runtime_stats_intervalNew Viewscolumn_store_row_groupsdm_db_merge_requestsdm_db_xtp_checkpoint - Note that both the DMVs and the SSMS UI imply that Hekaton will be…

Read more about New DMVs in SQL Server 2014 CTP1 27 comments — Join the discussion
Performance Tuning

Optimize for… Mediocre?

Some query hints sound too good to be true. And, unfortunately, usually they aren't quite as magical as they might seem.
Frustration with unpredictable execution times
People often learn about parameter sniffing when query execution times stop being predictable. Occasionally you'll hear about a stored procedure taking much longer than normal, but the next time you look, it might be faster.

Read more about Optimize for… Mediocre? 36 comments — Join the discussion
Performance Tuning

The Index Your Queries will Never Request (A Clustered Index!)

When it comes to indexes, SQL Server is really helpful. It lets you see what indexes queries are asking for both in execution plans, and missing index dynamic management views ("DMVs"). I like to look at the DMV missing index requests using sp_BlitzIndex®.

When you look at missing index requests, it's always important to remember one of the biggest things: these missing index requests won't ever ask for or recommend a specific clustered index.

Read more about The Index Your Queries will Never Request (A Clustered Index!) 3 comments — Join the discussion

(Almost) Everything You Need to Know About SQL Server 2014

Just when you thought SQL Server couldn't get better, Microsoft is announcing the features for SQL Server 2014. They haven't announced the licensing/pricing, but I'll tell you what I do know so far.First, open this in another tab and hit play so you've got some background music while you read. Done with the commercial? Okay, let's get…

Read more about (Almost) Everything You Need to Know About SQL Server 2014 97 comments — Join the discussion

Mix and Match Databases: Dealing with Data Types

Moving between databases is hard enough, try using multiple databases in the same application and you might start thinking you've gone insane. Different application demands for accessibility, redundancy, backwards compatibility, or interoperability make this a possibility in the modern data center. One of the biggest challenges of running a heterogeneous database environment is dealing with a world of data type differences. There are two main ways to work through this situation:

Read more about Mix and Match Databases: Dealing with Data Types 3 comments — Join the discussion

Is Your Code an English Garden or Ikebana?

Erika loves having fresh flowers around the house. Every Saturday morning, I pick up a bouquet at a farmer's market or grocery store and put it in a vase for her. I'm slowly upping my game by learning more and more about the art of arranging flowers.

When I say flowers, I bet you think about the English Garden style: a big, complex vase with all kinds of flowers crammed into every nook and cranny. It's an explosion of color and life.

Read more about Is Your Code an English Garden or Ikebana? 3 comments — Join the discussion

The Basics of Database Sharding

There are many ways to scale out your database; many of these techniques require advanced management and expensive add-ons or editions. Database sharding is a flexible way of scaling out a database. In this presentation, Jeremiah Peschka explains how to scale out using database sharding, covers basic techniques, and shares some of the pitfalls. This talk is for senior DBAs, database architects, and software architects who are interested in scaling out their database.

Read more about The Basics of Database Sharding 5 comments — Join the discussion

3 Things You Need to Start Doing to Your Database Server

Taking care of your health is incredibly important (says the marathon runner). Eating right, exercising, and getting plenty of rest help you stay healthy and perform optimally. Your database server’s health is important to your company’s health. You need to take regular backups, check for consistency, and keep indexes tuned for optimal performance. Here are…

Read more about 3 Things You Need to Start Doing to Your Database Server 14 comments — Join the discussion
Production DBA

Cloud Alternatives to Microsoft SQL Server

When people say "cloud", they're simplifying a lot of different solutions into a single catchphrase. Let's break out the different options and compare them.
1. SQL Server in Amazon EC2 and Azure VMs
Amazon EC2 is a virtualization platform. Amazon buys servers, installs their secret sauce software, and rents you Windows virtual machines by the hour. Microsoft offers a similar product, Windows Azure Virtual Machines, that just went officially live.

Read more about Cloud Alternatives to Microsoft SQL Server 32 comments — Join the discussion

3 Things You Need to Stop Doing to Your Database Server

No one knows everything, especially about SQL Server. When you encounter a problem, especially for the first time, you may not know how to solve it. I’ve seen some crazy approaches taken to fix problems – like duct tape on a car. Many times, instead of fixing the root cause of a problem, such as a poorly-performing query, a server-level change is made.

Read more about 3 Things You Need to Stop Doing to Your Database Server 1 comment — Join the discussion