Try this - Declare @Text Varchar(100),@delimiter NVARCHAR(5)Set @Text = 'I love the color of the grass in this park'set @delimiter = ' 'Declare @textXml XmlSelect @TextXml = Cast('<d>' + Replace(@Text, @Delimiter,'</d><d>') + '</d>' As Xml );SELECT DISTINCT ProductName, ProductURL FROM Product P INNER JOIN ProductURL PU ON P.ProductID = PU.ProductIDCROSS APPLY (SELECT T.split.value('.', 'nvarchar(max)') AS dataFROM @textXML.nodes('/d') T (split)) A WHERE ProductName LIKE '%'+data+'%'
Vaibhav TIf I cant go back, I want to go fast...