Hello guys,
Many months ago the young Rudy gave me a function for MySQL called substring_index which would allow me to select a certain number of words from a varchar using ' ' as the delimeter, great stuff.
Now I'm using SQLServer instead, and on my latest project i've just gone to use the function, and, :-o, SQLServer doesnt support it, or seem to have a direct equivilent.
Can anyone reccomend the best way to achieve somthing similar in SQL2k5? I'm pretty much a database novice, so if its somthing complex like UDF's, StoredProcs or anything like that then i'll need advice on how -exactly- to create them.
Thanks again guys,
Rob
Many months ago the young Rudy gave me a function for MySQL called substring_index which would allow me to select a certain number of words from a varchar using ' ' as the delimeter, great stuff.
Now I'm using SQLServer instead, and on my latest project i've just gone to use the function, and, :-o, SQLServer doesnt support it, or seem to have a direct equivilent.
Can anyone reccomend the best way to achieve somthing similar in SQL2k5? I'm pretty much a database novice, so if its somthing complex like UDF's, StoredProcs or anything like that then i'll need advice on how -exactly- to create them.
Thanks again guys,
Rob