Solved

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

Posted on 2011-03-16
6
468 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 7

Assisted Solution

by:namol
namol earned 0 total points
Comment Utility
sql server 2005 sp4
0
 
LVL 7

Accepted Solution

by:
namol earned 0 total points
Comment Utility
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
Comment Utility
Lack of activity on this question forced me to experiment to find the answer.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

11 Experts available now in Live!

Get 1:1 Help Now