Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7181407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:33:03+00:00 2026-05-28T17:33:03+00:00

Microsoft’s documentation for CONTAINS includes the following two clauses in their examples. CONTAINS(Name, ‘

  • 0

Microsoft’s documentation for CONTAINS includes the following two clauses in their examples.

CONTAINS(Name, ' "Mountain" OR "Road" ')

And also…

CONTAINS(Description, ' Aluminum AND spindle ');

Note that the first example places both search terms within double quotes while the second example does not. I cannot seem to find anyplace where it explains what is the difference between the two.

Since neither FORMSOF(INFLECTIONAL, ...) or FORMSOF(THESAURUS, ...) are used, I can only assume that the words are compared literally in both cases. That would mean both versions are equal. So why include them in double quotes in the first example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:33:03+00:00Added an answer on May 28, 2026 at 5:33 pm

    It is my understanding that quotes are only strictly required when a search phrase contains a wildcard or multiple words. If the search phrase is a single word and does not user a wildcard, then strictly speaking, double-quotes are not required.

    CONTAINS(LastName, 'Anders') --double quotes not required
    CONTAINS(LastName, '"Anders*"') --double quotes required since wildcard used.  Match Anders, Anderson, etc
    CONTAINS(Title,  '"End of time"') --double quotes required, since multiple words
    

    Of course, double quotes can still be used even when they are not required:

    CONTAINS(LastName, '"Anders"')
    

    Here is a quote BOL regarding the need for double quotes when a wildcard is used:

    If the text and asterisk are not delimited by double quotation marks, so the predicate reads CONTAINS (column, ‘text*’), full-text search considers the asterisk as a character and searches for exact matches to text*.>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Microsoft like implementing their own versions of popular open-source frameworks and assemblies, for example:
Microsoft released the source for Oxite , their blogging engine that's intended to help
Microsoft .NET Framework Assembly A Assembly B Contains Class C - References Assembly A
Microsoft released their out of band release to fix the security flaw in ASP.NET
Microsoft recently released tools and documentation for its new Phone 7 platform, which to
Microsoft recently announced their Facebook SDK. http://msdn.microsoft.com/en-us/windows/ee388574.aspx Has anyone tried using it with ASP.NET
Microsoft distributes source code to reference implementations of their different Direct3D APIs to hardware
Microsoft already has a Windows 7 Beta Customer Preview Program on their MSDN site
Microsoft offers the InterlockedCompareExchange function for performing atomic compare-and-swap operations. There is also an
Microsoft states in regards to abstract classes They also version well, because if additional

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.