Delimited Strings

Technical Article

Extract values from a string using a delimiter

  • Script

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)

You rated this post out of 5. Change rating

2011-11-28 (first published: )

2,609 reads

Blogs

Sabbatical le Troisième: A Recharge Week

By

It’s been a week since I flew home from London and Redgate to begin...

SQL Server Careers: Still a Goldmine, or a Dead End?

By

When you're searching about the future of a career in MS SQL Server, you're...

AI Destroying Creativity or Creative Industry

By

In 2025, artificial intelligence is no longer a futuristic concept—it’s a central force in...

Read the latest Blogs

Forums

how to move all SP from one db to another db?

By water490

Hi everyone I have two db - one is test and other is archive. ...

The Long Weekend

By Grant Fritchey

Comments posted to this topic are about the item The Long Weekend

Need Help to implement the De Duplication

By bala2014

Dear All, Good Day. I have a requirement to implement de-duplication on customer data...

Visit the forum

Question of the Day

Independence Day

The film independence day was released in 1996. Which of these queries returns that year is run today?

See possible answers