Sunday, July 06, 2008    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jan 2007 >>
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories
 • Adobe (63) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (10) [RSS]
 • AIR (108) [RSS]
 • Appearances (112) [RSS]
 • Books (66) [RSS]
 • CFEclipse (14) [RSS]
 • ColdFusion (1105) [RSS]
 • Data Services (6) [RSS]
 • Flash (94) [RSS]
 • Flex (334) [RSS]
 • Jobs (86) [RSS]
 • JRun (12) [RSS]
 • Labs (27) [RSS]
 • LiveCycle (16) [RSS]
 • MAX (145) [RSS]
 • Regular Expressions (12) [RSS]
 • SQL (36) [RSS]
 • Stuff (496) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (132) [RSS]
 • Wireless (96) [RSS]

Other BLOGs
 • Ray Camden
 • Tim Buntel
 • Sean Corfield
 • John Dowdell
 • Steven Erat
 • Brandon Purcell
 • Charlie Arehart
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Entry / Main
January 4, 2007

Performing SQL Server FREETEXT Searches

FREETEXT provides a simple mechanism by which to perform SQL Server 2005 full-text searches, matching by meaning as opposed to exact text match. Here is a simple example:

SELECT *
FROM my_table
WHERE FREETEXT(column1, 'rabbit food');

FREETEXT(column1, 'rabbit food') means perform a FREETEXT lookup on column column1 looking for anything that could mean rabbit food (but not necessarily those two exact words, and not necessarily as a phrase).

You can also search across all columns indexed for full-text search by using FREETEXT(*, 'search text').

If double quotes surround a search term then that exact phrase is matched, not the meaning.

TrackBacks
There are no trackbacks for this entry.

No trackback URL. Trackbacks are only allowed via interactive form.

Comments
Excellent posts Ben, very helpful. Thanks.

One question, I'm assuming the full text searching is disabled in the Express version? Do you know for sure?
# Posted By todd sharp | 1/4/07 3:41 PM
Todd, I believe that that is correct. See http://msdn.microsoft.com/vstudio/express/support/...

--- Ben
# Posted By Ben Forta | 1/4/07 4:37 PM
Good link. Q 51 states:

SQL Server 2005 Express Edition with Advanced Services is a download that includes the SQL Server 2005 database engine, SQL Server 2005 Reporting Services, SQL Server 2005 Management Studio Express and Full-Text Search. SQL Server 2005 Management Studio Express will also be available separately as a download.

So it looks like full text is available (in the Advanced Services download).
# Posted By todd sharp | 1/4/07 4:43 PM
Yep, I guess so! :-)

BTW, Oracle 10g Express (which is amazing, I'll be blogging details soon) includes Oracle fulltext support.

I love this new trend of releasing Express versions, be it Oracle Express, SQL Server Express, or the really great VIsual Studio Express implementations.

--- Ben
# Posted By Ben Forta | 1/4/07 4:46 PM
Comparing the version limitations between Oracle, Microsoft, and IBM - the DB2 express level product (when I last checked) had the least amount of limitations from file size and processor limitation. In any case, I'm hoping in a year well see all three continue to evolve their express versions and create really substantial, free, entry level db products. Indeed, it's the DB2 entry version that got me going "hummm, maybe time to look at DB2".
# Posted By Stephen Cassady | 1/5/07 10:57 AM

  © Copyright 1997-2008 Ben Forta, All Rights Reserved