Thanks, angelIII, for your quick response. I am admittedly a non-expert in SQL Server (much more proficient in Access and working my way up the SQL learning curve) so I have had to scratch my head over your answer a bit, especially since the code snippet seems to end prematurely with a colon.
The first hurdle was in finding a version of ParmsToList that contained the second argument (delimiter). There is another version floating around that only has a single argument, and that, of course, did not work very well.
I have been able to run ParmsToList, supplying a string of words as the argument, and getting a table in return, but this does not get me where I want to go. I will need a little more handholding to get the actual results I am after. Specifically, I need to start with a table that contains two columns, RowID and RowText, as shown in the code snippet (to retain spacing).
I need to know if it is possible to construct a query (view), such that if I know I am looking for Soundex matches for the word "Haze", the query will return three rows, each having only the RowID field. The values returned would be A, B and D, since those rows contain words (has, hose and he's) whose Soundex code (H200) matches that of Haze.
Main Topics
Browse All Topics





by: angelIIIPosted on 2009-04-10 at 08:02:50ID: 24116094
please find the function dbo.ParmsToList on EE, which I use all the time.
for your needs, it could be used like this:
select value, soundex(value)
from dbo.parmstolist('This string has several words', ' ') l
in a function, to reconcat the values:
Select allOpen in new window