Check this previus post:
http://www.experts-exchang
Main Topics
Browse All TopicsHow to split string in sql server 2005 using character? I want to use every part of splitted string.
There is split function available in VB or VB.NET, but how can i do this in Transact-sql.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Check this previus post:
http://www.experts-exchang
I agree with angel on creating a function to do the job. Here is one I wrote modified t o have delimiter passed in. Mine was originally written with delimiter like ',' or '|' or other single character in mind, but can adjust. Just showing different means of getting substrings through loop, but agree with concept answer of angel.
You will probably need to use self join, but I would suggest, since the split question has been answered and is working, that you post issues you are having with the insert as a new question so that you get other experts looking at this as well as I am sure there are other alternatives. You essentially have a table of values now, so you question moves from a split function to how to insert x number of records from one table into another table as one single row.
Are you not happy with my response? It wasn't meant to be rude, as I did offer a solution of using a self join. Just thing you will get a more detailed answer with perspective of more experts if posted under heading of "how to insert x number of records from one table into another table as one single row?" explaining you want rows as columns and ability to manipulate specific column on insert giving the format or what you are trying to do with that.
If you are just unsure how to close, please select the answer comment(s) above that you used in your working string split solution.
Anyway, sorry if I offended you, but glad I was able to help you with initial question as I am sure angel was as well as gave some good information above including a full blow split method.
Business Accounts
Answer for Membership
by: momi_sabagPosted on 2008-09-10 at 04:42:17ID: 22437222
your question is not that clear
in order to extract a portion from a string you need to use the substring function
if you want to locate a string inside another string you should use charindex function
using these 2 functions you can do pretty much everything