Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Search Function

Author  Topic 

FutureAndAHope
Starting Member

2 Posts

Posted - 2009-02-03 : 21:43:43
I have a table that I wish to search several of the column names, using one or more search words (entered via a html search box).

e.g. Table Job (

Description text,
Title varchar(100),
JobId bigint
)

example search phrase: Plumber Brisbane 100,000K

How would I search the table for the three (potentially unlimited)search phrases above

FutureAndAHope
Starting Member

2 Posts

Posted - 2009-02-03 : 22:15:35
Above the search phrase is sent to the procedure as a single variable:

e.g. @SearchPhrase

So far I have split the values into a table variable using a custom split function.
Go to Top of Page
   

- Advertisement -