Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MSSQL full-text search limitations

Posted on 2008-06-16
3
Medium Priority
?
829 Views
Last Modified: 2008-06-23
Hi Experts,
I have 3 tables:
tblMaps - ID, Map
tblLocations - ID, Location
tblMap_Location - ID, MapID, LocationID

Each Map have between 1000-3000 Locations. Each Location is limited to 100 characters in length. tblMaps is expected to have between 2 to 2.5 million records.

I'm currently using full-text indexing on tblLocations.

I found that the CONTAINS statement has some limitations. It is unable to perform wildcard search such as: *ork, Y*k or *or*. I would have to use LIKE statement for those searches.

My question are:
1) Is there a way to perform the wildcard searches that I specified using CONTAINS statemnt?
2) Does the LIKE statement benefit from full-text indexing?

Thanks
0
Comment
Question by:noobe1
  • 2
3 Comments
 
LVL 43

Expert Comment

by:Eugene Z
ID: 21796516
try:
SQL Server does not
support a leading wildcard in full text searches
Try the * after your search criteria  
 
select * from yourTablename where contains(yourcolumnname,'Y*"')  
also check:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3118578&SiteID=1
--
all idea of FTS: do not use  "like"

0
 

Author Comment

by:noobe1
ID: 21799283
EugeneZ,

I know that using wildcard at the end of the search criteria works, but that really limits the search results.

Thanks
0
 
LVL 43

Accepted Solution

by:
Eugene Z earned 1500 total points
ID: 21802493
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question