Quantcast
Channel: .NET Framework inside SQL Server forum
Viewing all articles
Browse latest Browse all 780

SQL CLR to remove delimiter in SQL column

$
0
0

Hi,

I m new to SQL CLR and as I was googling around I found that SQL CLR potentially could resolve my issue.

Here's the scenario: I have a SQL column with data in this format:

Team Members

19;#Twain, Mark

110;#Hawkins, Gary;#111;#Cooper, Christina

11;#Mcghee, Ben;#114;#Terry, Cindy;#119;#Jing, Kyle

I want this:

Team Members

Twain, Mark

Hawkins, Gary; Cooper, Christina

Mcghee, Ben; Terry, Cindy; Jing, Kyle

May be writing a SQL CLR function that takes Team Members column and parse the data in the way I want to show(SELECT query result) would help. Any ideas on how do I do that? Is there any other ways to accomplish what I m looking for? Please advise. Thanks.


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>