Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Extract values from list....

Author  Topic 

manny
Starting Member

14 Posts

Posted - 2006-02-15 : 14:40:44
Hi,
I'm trying to create a procedure which will take in a list of type varchar as a parameter and then loop through and extract out the separate values from the list which are delimited by a comma, convert the extracted segment to a float and then store each indivisual value in a table.

I've not got a clue where to start, can someone please provide some suggestions.

Thanks

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-02-15 : 14:45:44
check out this topic:

Best split function
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50648

Be One with the Optimizer
TG
Go to Top of Page

manny
Starting Member

14 Posts

Posted - 2006-02-15 : 15:04:09
Thanks for the link.

Manny
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-02-16 : 06:01:07
Hi manny, Welcome to SQL Team!

Some other info on Splitting CSV type data:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=split

Kristen
Go to Top of Page
   

- Advertisement -