Sql-Server

Category: sql-server

Resolving Merge Conflicts in SQL Source Control: The Basics (Video)

Resolving Merge Conflicts in SQL Source Control: The Basics (Video)

In this 35 minute livestream recording, I commit conflicting code to a Git repo in Azure DevOps Services using Redgate’s SQL Source Control, then step through options to fix the conflict.

We first run through an example where we hit a conflict when pushing to the master branch and resolve that. Then we run through an example where we are using a feature branch and identify the conflict when doing a pull request to merge the change into master.

Continue reading

Online, Resumable, and WAIT_AT_LOW_PRIORITY Operations in SQL Server

Online, Resumable, and WAIT_AT_LOW_PRIORITY Operations in SQL Server

ONLINE operations in SQL Server were simple to understand for years – we got ONLINE index rebuilds in SQL Server 2005. That was it for a while.

Then, things got more complicated: we got more types of indexes. We got ONLINE options for schema changes that don’t involve indexes. We got more options for managing things like blocking, because online operations are really only mostly online: generally there’s going to be at least a short period where an exclusive lock is needed to update metadata. We now have some RESUMABLE operations coming in, too, for those big operations that are tough to handle.

Continue reading

Links and Resources from How to Architect Successful Database Changes

Links and Resources from How to Architect Successful Database Changes

Steve Jones and I had a great time today talking about source control for databases and release patterns for performance and availability in Seattle. We had a group of folks who asked terrific questions, made thoughtful comments, and interacted throughout the day.

Continue reading

SQL Server Management Studio Is as Relevant as Ever

SQL Server Management Studio Is as Relevant as Ever

πŸ”₯ UPDATE: Azure Data Studio (ADS) was retired on February 6, 2025, with support ending on February 28, 2026. Additionally, SSMS has been modernized and is no longer based on the legacy Visual Studio shellβ€”it's now built on Visual Studio 2022 with 64-bit support and improved performance.

For more details, see the Azure Data Studio retirement announcement and Erin Stellato's announcement about SSMS modernization..

Sometimes you keep a classic around.

Continue reading

The SQL Server Data Row Size Question: Why Is It Bigger?

The SQL Server Data Row Size Question: Why Is It Bigger?

This morning, I received the following question from a user:

Could you please clarify SQLServer “Data Row” size: If I run the script below on SQL Server 2012, then Slot(row) Size is 710 bytes if I run the same script against SQL Server 2016 and above, then Slot(row) Size is 724 bytes.

They then provided a script which creates and inserts a few rows into a sample table, runs the DBCC IND command to find a list of pages for the sample table, then uses the DBCC PAGE command to examine the page.

Continue reading

Fix My Functions: Speeding Up Scalar and Table Valued UDFs (video)

Fix My Functions: Speeding Up Scalar and Table Valued UDFs (video)

Last week, I presented on the topic of TSQL User Defined Functions (UDFs) in SQL Server at the PASS Summit.

Continue reading