Solved

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

Posted on 2011-03-16
6
470 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Degrading on Write 13 67
Get row count of current SQL query 8 55
kill process lock Sql server 9 54
SQL Server Insert where not exists 24 41
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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