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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Extract values from list....
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

manny
Starting Member

14 Posts

Posted - 02/15/2006 :  14:40:44  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

USA
6065 Posts

Posted - 02/15/2006 :  14:45:44  Show Profile  Reply with Quote
check out this topic:

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

Be One with the Optimizer
TG

Edited by - TG on 02/15/2006 14:47:36
Go to Top of Page

manny
Starting Member

14 Posts

Posted - 02/15/2006 :  15:04:09  Show Profile  Reply with Quote
Thanks for the link.

Manny
Go to Top of Page

Kristen
Test

United Kingdom
22859 Posts

Posted - 02/16/2006 :  06:01:07  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000