Hi guys, I am experimenting on the SOUNDEX feature of SQL Server 2K and came across with a roadblock.
I have this code and it's not returning a record but I've checked that there's a content in the TEXT data type field called Description the word "alcohol"(without the quotes).
SELECT myTable.Drinks
FROM myTable
WHERE
SOUNDEX('alcohol') = SOUNDEX(CONVERT(varchar, Description))
When I tried this code and modified it a bit and used a varchar field, it returned something. The DescriptionVarchar field also has "alcohol" in some of its rows.
SELECT myTable.Drinks
FROM myTable
WHERE
SOUNDEX('alcohol') = SOUNDEX(DescriptionVarchar)
Am I missing something? I have searched the internet and have not been successful yet in finding some clues.
Any help is appreciated.
Thanks guys.
I have this code and it's not returning a record but I've checked that there's a content in the TEXT data type field called Description the word "alcohol"(without the quotes).
SELECT myTable.Drinks
FROM myTable
WHERE
SOUNDEX('alcohol') = SOUNDEX(CONVERT(varchar, Description))
When I tried this code and modified it a bit and used a varchar field, it returned something. The DescriptionVarchar field also has "alcohol" in some of its rows.
SELECT myTable.Drinks
FROM myTable
WHERE
SOUNDEX('alcohol') = SOUNDEX(DescriptionVarchar)
Am I missing something? I have searched the internet and have not been successful yet in finding some clues.
Any help is appreciated.
Thanks guys.