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

129 reads

Blogs

What a Summer Camp Kitchen Still Teaches Me

By

(2025-Aug-04) Taking my last week of vacation and then volunteering at a children's summer camp...

AI Transformation and Security in Microsoft’s 2025 Announcements

By

Microsoft’s latest wave of announcements in July 2025 offers a compelling snapshot of how...

From Zero to Dashboard: A SQL Project for Total Beginners

By

Let's build a real data dashboard. This guide will walk you through the entire...

Read the latest Blogs

Forums

Direct Connection running Fast,Linked Server running Slow

By 892717952

Scenario 1 (Direct Connection - Fast): On Server B, when using SQL Server Management...

Direct Connection running Fast,Linked Server running Slow

By 892717952

Scenario 1 (Direct Connection - Fast): On Server B, when using SQL Server Management...

Yet another Date Dimension

By RevOX11

Comments posted to this topic are about the item Yet another Date Dimension

Visit the forum

Question of the Day

Always On Availability Groups and Capabilities

SQL Server Always On Availability Groups is the go-to HADR solution for the database platform.  Which of the following statements about SQL Server Always On Availability Groups are TRUE?

See possible answers