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 6823057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:44:13+00:00 2026-05-26T21:44:13+00:00

maybe this is a dumb question. How do I achieve in sql like ‘%test%’

  • 0

maybe this is a dumb question.

How do I achieve in sql ” like ‘%test%’ using free text ?

I thought contains and free text are equivalent to ” like ‘%test%’, plus one get’s grammar check, and performance.

In my case I have :

select * from ServiceOfferResultIndexed where contains(FirstName,'test') 

which gives me 18

rows.select * from ServiceOfferResultIndexed where FirstName like '%test%'

which gives me 229 rows.

thanks for the help.

The DB, is MS SQL 2005. I think it does support the * as postfix. It seams that if I provide ‘”*test”‘ the * is considered as a word not a wild card. Test becomes the following word.

Contains will only support “test *”, where it looks for all the phrases starting with ‘test’ followed by any other character.

  • 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-26T21:44:14+00:00Added an answer on May 26, 2026 at 9:44 pm

    Those are two different expressions. LIKE '%test%' is going to find any row where those four characters are together (e.g. testimonial, or contestant) where contains is going to match on words.

    I don’t know what full text engine you’re using but usually wildcards are supported. For example, what happens if you use where contains(firstame, '*test*')? You’ll have to consult your specific dbms’ documentation for wildcards in free text search.

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

Sidebar

Related Questions

Maybe this is a dumb question, but do event listeners use CPU cycles like
I don't really get this. Maybe it's a dumb question. Is SQL Azure a
Maybe this is a dumb question, but is there any way to convert a
Maybe this is a dumb question, but I have the following behavior in Visual
So maybe this is a dumb question but do web pages look different based
I feel like this may be a dumb question, but it's late and my
I think this maybe a really dumb question, but i just want to be
its a maybe a dumb question but i am curious to understand this thing....
This might be a dumb question, but maybe someone can provide some insight. I
This may be a dumb question but it seems like activateIgnoringOtherApps: may be the

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.