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)

2002-05-10

450 reads

Blogs

Daily Coping 19 May 2022

By

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

Running dynamic SQL in a different database

By

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

VMware & SQL Server 823-824 alerts

By

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

Read the latest Blogs

Forums

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

By PJ_SQL

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