This does not seem to work:
CREATE Procedure getSearchResult s2
(
@search nvarchar(4000)
)
as
SELECT listing_id, RANK, name, address, city, zip, heading, phone
FROM listings a,
FREETEXTTABLE(l istings, *, 'FormsOf(INFLEC TIONAL, @search') b
WHERE [KEY] = a.listing_id
ORDER BY RANK DESC, name
GO
It always treats @search as NULL. What's wrong with my syntax here?
Thanks!
Casey
CREATE Procedure getSearchResult s2
(
@search nvarchar(4000)
)
as
SELECT listing_id, RANK, name, address, city, zip, heading, phone
FROM listings a,
FREETEXTTABLE(l istings, *, 'FormsOf(INFLEC TIONAL, @search') b
WHERE [KEY] = a.listing_id
ORDER BY RANK DESC, name
GO
It always treats @search as NULL. What's wrong with my syntax here?
Thanks!
Casey
Comment