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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:03:50+00:00 2026-05-24T16:03:50+00:00

How to get results from SQL table. In my application I used fulltext search.

  • 0

How to get results from SQL table.
In my application I used fulltext search.
I want to get:

for example If user enter word like “Great Events“. Then result should be comes as below sequence.

  1. first result related to whole word “Great Events” and then
  2. “Great” related result then
  3. “Events” related result.

The first results should be all updates with the entire search term “Great Events“.

Only after you show these results, then display updates with term “Great Events“, “Greater Events” etc.
Basically words that contain the terms “Great Events”.

Then show results from updates that have both words “Great” and “Events”, and its variations.
Finally, show results from updates that have one of the two words…

My table likes:
Columns

UserUpdates


UpdateID – int
UserID – int
MsgText – nvarchar(500)
CreatedOn – datetime

How to do using SQL script.. ?

  • 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-24T16:03:52+00:00Added an answer on May 24, 2026 at 4:03 pm

    You could create a fulltext catalog and add a fulltext index on your table to solve this.

    Do do this , you might create a simple parser in c# to take the search terms and create a search keyword; turning the search for “great events” to something like :

    ‘”great events” OR (Great AND Events)’

    You can than create a query like this, based on that search keyword:

    SELECT * FROM CONTAINSTABLE ([YourFullTextIndexTable], *, ‘”great events” OR (Great AND Events)’ , 2057,0)
    ORDER BY RANK DESC

    The above is for british english (2057) and the default stoplist (0).

    This would return records with “Great Events” as a phrase first followed by records with Great and Events in there somewhere.

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

Sidebar

Related Questions

I currently use a DataTable to get results from a database which I can
I want to get the last result returned from this query. How do I
Is there any way in SQL Server to get the results starting at a
I have an application that reads a table from a database. I issue an
I am trying to get serialized results from a WCF service from database using
I would like to get a sum from a column, with and without a
I was hoping to run a single query and get results from that. However,
I have a SQL Server table and I'm trying to make sense of fulltext
If I get an error code result from a Cocoa function, is there any
I'm trying to get distinct results using the Criteria API in NHibernate. I know

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.