Technical Article

Parse a delimited string, return n-th value

This UDF will parse a string delimited by the character you specify and return the value in the n-th position you requested.Example:select dbo.fn_parse('this string', ' ', 1) --> 'this'select dbo.fn_parse('this string', ' ', 2) --> 'string'select dbo.fn_parse('this string', ' ', 3) --> NULLselect dbo.fn_parse('this  string', ' ', 2) --> ''

1 (1)


450 reads


Daily Coping 19 May 2022


I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Running dynamic SQL in a different database


This is one of those things that on hindsight was a stupid problem, but...

VMware & SQL Server 823-824 alerts


We’ve been tracking a weird state with SQL Server virtual machines on VMware and...

Read the latest Blogs


Exporting the Database Encryption Key

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Exporting the Database Encryption Key

SQL Duplicate remove Query

By rocky_498

Hi Guys, I want to remove duplicates from the table. The duplicate is a...

Always On Primary Node needs to be rebooted


I have 2 node AAG setup. Currently listener is on Primary Node1. I have...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers