Sql-Server

Category: sql-server

New Article on Performance Tuning with the Missing Indexes Feature in SQL Server

New Article on Performance Tuning with the Missing Indexes Feature in SQL Server

We’ve just published a new article in the SQL docs, Tune nonclustered indexes with missing index suggestions . The article explains what the missing index feature is, limitations of the feature, and how to use missing index DMVs and missing index suggestions in Query Store to tune indexes.

Continue reading

Find Query Execution Timeouts with Query Store

Find Query Execution Timeouts with Query Store

During a discussion of troubleshooting query timeouts in Azure SQL Database recently, I wondered: can you find queries that timed out in Query Store?

You can.

Continue reading

Index Design Guide Updated: Index Types, B+ Trees, and Row Locators, Oh My

Index Design Guide Updated: Index Types, B+ Trees, and Row Locators, Oh My

We’ve recently updated the SQL Server and Azure SQL index architecture and design guide. This article is an in-depth guide to indexing in databases using the SQL Server engine, including SQL Server, Azure SQL Database, Azure SQL Managed Instance, and Azure Synapse Analytics.

Our recent update adds a table to categorize the types of indexes discussed in the article, clarifies B-trees vs B+ trees, and describes how row locators (aka “secret columns”) are used in nonclustered indexes.

Continue reading

Gotchas with Deferred Name Resolution in SQL Server: Stored Procedures, Synonyms, Views, and Functions

Gotchas with Deferred Name Resolution in SQL Server: Stored Procedures, Synonyms, Views, and Functions

Have you ever tried to create an object in SQL Server, but it failed due to a missing table, column, or other dependency? If so, you’ve hit a case where SQL Server doesn’t offer ‘deferred name resolution’.

Continue reading

Managing Drift in Automated Deployments to SQL Server Databases

Managing Drift in Automated Deployments to SQL Server Databases

One big gotcha that teams often encounter when automating deployments for databases is that it’s difficult (or sometimes impossible) to ensure that all changes to the production database are performed through the automation pipeline.

These out-of-band changes case the production database to “drift” away from the schema as defined in version control.

Continue reading

How to Enable TCP/IP in SQL Server Developer Edition, Even If the Configuration Manager Is Missing

How to Enable TCP/IP in SQL Server Developer Edition, Even If the Configuration Manager Is Missing

SQL Server’s Developer Edition installs with a different default network protocol configuration than Standard Edition and Enterprise Edition.

Fixing this has gotten more complicated because it’s become common for the SQL Server Configuration Manager to not be installed on a developer’s workstation in an easily accessible way.

Continue reading

Everything I Never Wanted to Know About Collation (14 minute video/podcast episode)

Everything I Never Wanted to Know About Collation (14 minute video/podcast episode)

By Kendra Little on July 16, 2020

I’m not an expert on collation in SQL Server, but there are a few important facts which I’ve had to learn the hard way. In this episode I share the basics, along with helpful resources to learn more.

Continue reading