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

123 reads

Blogs

SQL Server 2025: Not Just a Database; A Data Engine Reimagined

By

Let us be honest; most database upgrades feel like a patchwork of performance tweaks...

From AI to JSON: What’s New in SQL Server 2025 Data Types (With Scripts)

By

🚀 Introduction SQL Server 2025 is a landmark release that redefines how developers and...

Build and Deploy Dockerize Python Application to Azure Container Instances (ACI) using Azure DevOps

By

As a software Engineer, I would like to deploy my Dockerized Python Application to...

Read the latest Blogs

Forums

A Little Appreciation

By Grant Fritchey

Comments posted to this topic are about the item A Little Appreciation

upgrade to SS2022

By water490

Hi everyone SS2022 has been around for a few years now so I have...

Data Model for a framework to keep track of ETL processes

By GBeezy

Im attempting to come up with small framework or set of SQL tables that...

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