Using Boolean Operators with Full-Text MS SQL

The following Boolean operators may be used when full-text searching with an MS SQL database. These operators can be used by themselves or combined in a number of ways to create very specific search results. They are always placed between the keywords on which you are searching. With an MS SQL database, they may also be used in conjunction with phrases entered within double quotes.

For a description of all of the MS SQL search operators, see the Full Text Searching with MS SQL Reference.

Simple Boolean Operators

AND

Example: Smith AND Company

OR

Example: Smith OR Company

Advanced Boolean Operators

Basic Boolean searches suit most of your needs, but you might want to narrow your search even further by applying more advanced operators. While advanced, they still resemble common thought processes used in making choices.

In addition to the two simple operators discussed above, with MS SQL full-text searching you can use the following operators.

NOT

Example: Smith AND NOT Wesson

NEAR

Example: Davis NEAR Corporation

Related Topics