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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:08:23+00:00 2026-05-21T16:08:23+00:00

I have a SQL Server table and I’m trying to make sense of fulltext

  • 0

I have a SQL Server table and I’m trying to make sense of fulltext searching 🙂

I have set up a fulltext catalog and a fulltext index on a table Entry, which contains among other columns a VARCHAR(20) column called VPN-ID.

There are about 200’000 rows in that table, and the VPN-ID column has values such as:

VPN-000-359-90
VPN-000-363-85
VPN-000-362-07
VPN-000-362-91
VPN-000-355-55
VPN-000-368-36
VPN-000-356-90

Now I’m trying to find rows in that table with a fulltext enabled search.

When I do

SELECT (list of columns)
FROM dbo.Entry
WHERE CONTAINS(*, 'VPN-000-362-07')

everything’s fine and dandy and my rows are returned.

When I start searching with a wildcard like this:

SELECT (list of columns)
FROM dbo.Entry
WHERE CONTAINS(*, 'VPN-000-362-%')

I am getting results and everything seems fine.

HOWEVER: when I searching like this:

SELECT (list of columns)
FROM dbo.Entry
WHERE CONTAINS(*, 'VPN-000-36%')

suddenly I get no results back at all….. even though there are clearly rows that match that search criteria…

Any ideas why?? What other “surprises” might fulltext search have in store for me? 🙂

Update: to create my fulltext catalog I used:

CREATE FULLTEXT CATALOG MyCatalog WITH ACCENT_SENSITIVITY = OFF

and to create the fulltext index on my table, I used

CREATE FULLTEXT INDEX 
ON dbo.Entry(list of columns)
KEY INDEX PK_Entry

I tried to avoid any “oddball” options as much a I could.

Update #2: after a bit more investigation, it appears as if SQL Server Fulltext search somehow interprets my dashes inside the strings as separators….

While this query returns nothing:

SELECT (list of columns)
FROM dbo.Entry
WHERE CONTAINS(*, '"VPN-000-362*"')

this one does (splitting up the search term on the dashes):

SELECT (list of columns)
FROM dbo.Entry
WHERE CONTAINS(*, ' "VPN" AND "000" AND "362*"')

OK – seems a bit odd that a dash appears to result in a splitting up that somehow doesn’t work…..

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

    which Language for Word Breaker do you use? Have you tried Neutral?

    enter image description here

    EDIT:
    in adition you should use WHERE CONTAINS([Column], '"text*"'). See MSDN for more information on Prefix Searches:

    C. Using CONTAINS with

    The following example returns all
    product names with at least one word
    starting with the prefix chain in the
    Name column.

    USE AdventureWorks2008R2;
    GO
    SELECT Name
    FROM Production.Product
    WHERE CONTAINS(Name, ' "Chain*" ');
    GO
    

    btw … similar question here and here

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

Sidebar

Related Questions

I have a table in SQL Server 2005 which has three columns: id (int),
I have a sql server 2005 table which has xml store in a text
I have SQL Server 2005 and I am trying to export a table into
I have SQL Server Express 2008. How can I set a table's relations in
I have a SQL Server 2008 table which contains an external user reference currently
I have a SQL SERVER Table which has only one field StartDate the records
I have a SQL Server (2005) table which has nearly 100+ million rows in
We have a SQL Server table containing Company Name, Address, and Contact name (among
I have a SQL Server 2005 table like this: create table Taxonomy( CategoryId integer
I have an SQL Server DB with a table with these fields: A bit

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.