Scripts

Technical Article

T-SQL Table Valued Function to compare Semantic Versions

Semantic versioning (SemVer) is a standardized system for labeling software releases using a three-part number—major, minor, and patch—optionally followed by pre-release labels and build metadata. Comparing semantic versions is complex because it requires handling both numeric and string components, as well as special precedence rules for pre-releases and stable versions. SQL Server’s hierarchyid data type is ideally suited for comparing the numeric parts of semantic versions, enabling efficient and accurate ordering without the pitfalls of string comparison or manual parsing.

5 (1)

You rated this post out of 5. Change rating

2025-05-27

125 reads

Blogs

Accessing the Kubernetes API from SQL Server 2025

By

The sp_invoke_external_rest_endpoint stored procedure that’s available in 2025 allows for SQL Server to hit...

Empowering Technical Teams: Leading with Vision, Not Micromanagement

By

Let’s be honest; technical teams don’t thrive under a microscope. They thrive under a...

Azure DMS Tutorial: Migrate Databases to Azure with Minimal Downtime

By

Migrating databases to the cloud can be complex, but Azure Database Migration Service (DMS) simplifies the...

Read the latest Blogs

Forums

How to safely and surgically restore filegroups

By Chandan Shukla

Comments posted to this topic are about the item How to safely and surgically...

Get Your Chores Done

By Grant Fritchey

Comments posted to this topic are about the item Get Your Chores Done

Trouble Sending Email from Scheduled Job

By homebrew01

I'm a little rusty with SQL, been away a while. I have SQL Mail...

Visit the forum

Question of the Day

Capacity Planning for an Existing SQL Server Workload?

You're tasked with planning capacity for a new SQL Server database workload. Which of the following is the most accurate way to determine how much CPU, memory, and I/O throughput your workload requires?  What single or multiple tools would you use to answer the questions around resource needs?

See possible answers