all groups > sql server programming > november 2003 >
You're in the

sql server programming

group:

splitting up a , string


Re: splitting up a , string Anith Sen
11/17/2003 5:09:52 PM
sql server programming:
Search the google archives of this newsgroup with "Arrays in SQL"

--
- Anith
( Please reply to newsgroups only )

Re: splitting up a , string Aaron Bertrand - MVP
11/17/2003 6:09:31 PM
http://www.aspfaq.com/2248



[quoted text, click to view]

splitting up a , string AussieRules
11/17/2003 11:05:56 PM
Hi,

I pass a string into a SP, that is actually a bunch of int values seperated
by the ',' char. (1,4,2,54,2,1)

I want to pull out each int, and insert it into a table.

Just started to get into SP code, and have no idea how to do this.

Any help would be great...

Thanks




Re: splitting up a , string Vishal Parkar
11/18/2003 4:41:05 AM
AussieRules,
Refer to following url to convert comma seperated values into row.

http://www.geocities.com/vgparkar/SQL-Server-2000-scripts#_Toc54533583

Later you can use insert statement to insert values into table that are returned by the function

--
- Vishal

[quoted text, click to view]

AddThis Social Bookmark Button