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 / October 2005

Tip: Looking for answers? Try searching our database.

How to search for a '%' using like and/or Full-Text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordowey - 20 Oct 2005 19:54 GMT
Hi all, I have 2 questions

1.- How can i search for "%" using like

select * from table where sfield like '%%%'

is not working!

2.- I am using Full-text catalog in one table of my db, i would like to
know if i can search for % using

CONTAINSTABLE(TABLE.....

thanks

Alberto
Hilary Cotter - 20 Oct 2005 20:28 GMT
1) try something like this

select * from table where sfield like '%!% %' escape '!'

2) this will work but it will match with any non alphanumeric character.

> Hi all, I have 2 questions
>
[quoted text clipped - 12 lines]
>
> Alberto
 
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.