Technical Article

Extract values from a string using a delimiter

There are many occasions in programs where you need to manipulate strings of characters that are delimited by a particular character, such as a comma, or a space. This function enables you to extract a substring from the string at a specified occurence of the delimter. declare @Data varchar(255) set @Data = 'A,B,C,D,E' print dbo.field(@data,',',2,2) […]

4.17 (6)

2011-11-28 (first published: )

2,465 reads

Blogs

Daily Coping 16 May 2022

By

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

SQL Saturday Jacksonville Slide Decks

By

Here are the slide decks for my sessions at SQL Saturday Jacksonville 2022 Continuous...

Power BI connectors to Azure Synapse

By

When using Power BI and pulling data from Azure Synapse, you will use the...

Read the latest Blogs

Forums

EXECUTE SSIS Pacakge from command line with environment variables

By komal145

hi, I am trying to execute ssis package from command line. I also tried...

SQL Server replication migration from sql 2012 to 2019

By SQL_Hunt

Hello I need to migrate existing sql server 2012 replication to the SQL Server...

Failed code dcexec -u -s 3 -i "$(ESCAPE_DQUOTE(MACH))\$(ESCAPE_DQUOTE(INST))"

By juliava

Hello,   I cant understand what this code is doing, can some one please...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers