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
 General SQL Server Forums
 New to SQL Server Programming
 How to iterate thru to get all the values in a var

Author  Topic 

garima1010
Starting Member

1 Post

Posted - 2010-03-17 : 00:03:28
Hi,
Presently in my table column the values are coming as
'33|22|44|49'
I am able to split them but I am only getting the first value
and not others.

Can somene please tell me how to get all the values.

Thanks.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-03-17 : 00:34:24
if you want the values in rows, use

CSVTable
fnParseList

use this if you want the values in columns
fnParseString


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-17 : 01:23:05
see

http://visakhm.blogspot.com/2010/02/parsing-delimited-string.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -