Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / May 2005

Tip: Looking for answers? Try searching our database.

Search for Substring

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Binder - 23 May 2005 18:22 GMT
I want to search for a substring that is contained in one of the indexed
words.
For example, the catalog contains "00001498ABC"
I want to search for the substring "1489" since I don't know what the
leading characters are going to be, in this case four leading zeros.
I know the asterisk can be used as a wildcard when applied as a suffix.
Is there a method to find all words containing the substring?

Thanks
Hilary Cotter - 23 May 2005 20:43 GMT
not really, the recommended way of handling things like this is to store
your content in the database in reverse, so the string reverse would be
stored as esrever.

Then you would query like this select * from tablename where
contains(*,'9841*')

Signature

Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

> I want to search for a substring that is contained in one of the indexed
> words.
[quoted text clipped - 5 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.