Solved

SQL Server 2005 returns no results when searching for 4 or more digits

Posted on 2011-03-16
6
469 Views
Last Modified: 2012-05-11
I'm having an issue with Full Text searching on a selected table. I can search for numbers but any number that has four or more digits does not return any results.

IE: 110 will return a list of all the fields with 110 in it. 1100 will not return any results.
0
Comment
Question by:namol
  • 4
  • 2
6 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35150854
Full Text indexing isn't like a % wildcard like search.  But you can do it by using * I believe.

ex: 110*
0
 
LVL 7

Assisted Solution

by:namol
namol earned 0 total points
ID: 35150985
You can use the asterisk as a wild card but for some reason when I do use it, it doesn't return the expected results.
IE:

TableData

QuoteNum
1239910101
9851452102
7777777777

a sql statement like
SELECT QuoteNumber
FROM         TableData
WHERE     CONTAINS(*, '"*77777*"')
will return no results but if I searched for *777* it would yield the desired results.
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35151030
Unfortunately I don't have a lot of experience working with full text indexes so I'm not sure.  What service pack are you using?
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 7

Assisted Solution

by:namol
namol earned 0 total points
ID: 35151057
sql server 2005 sp4
0
 
LVL 7

Accepted Solution

by:
namol earned 0 total points
ID: 35189874
Well, the work around for my issue is checking to see if the string is numeric and then performing a search based off using like '%11%'.
0
 
LVL 7

Author Closing Comment

by:namol
ID: 35225302
Lack of activity on this question forced me to experiment to find the answer.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now