Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent AT() search function in T-SQL
Message
From
11/02/2002 11:48:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Equivalent AT() search function in T-SQL
Miscellaneous
Thread ID:
00618408
Message ID:
00618408
Views:
40
Hi, all...

We have a search/filter capability in our product, where someone can type a partial text string into a variable called cMySearch, and then we do a

SELECT * FROM WHERE AT(cMySearch,Field1) > 0 OR AT(cMySearch,cField2) > 0 OR... [you get the idea]

We're moving this functionality into SQL Server, and I came across the CONTAINS function that you can use in a SQL statement...except that you need to have full-text indexing on. This sounds like it might be a bit of a maintenance issue.

Bottom line is...is there a native function in T-SQL [using SQL Server 2000] that allows me to do the equivalent of an AT() in a SQL WHERE clause, without having to install full text indexing or other features?

Thanks,
Kevin
Next
Reply
Map
View

Click here to load this message in the networking platform