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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:55:05+00:00 2026-06-13T04:55:05+00:00

I have a table (MyTable) with the following columns: Col1: NameID VARCHAR(50) PRIMARY KEY

  • 0

I have a table (MyTable) with the following columns:

Col1: NameID VARCHAR(50) PRIMARY KEY NOT NULL
Col2: Address VARCHAR(255)

Data Example:

Name: ‘1 24’
Address: ‘1234 Main St.’

and i did a full text index on the table after making the catalog using default params.

How can I achieve the following query:

 SELECT * FROM MyTable
 WHERE CONTAINS(NameID, '1')
 AND CONTAINS(Address, 'Main St.');

But my query is returning no results, which doesn’t make sense because this does work:

 SELECT * FROM MyTable
WHERE CONTAINS(Address, 'Main St.');

and so does this:

 SELECT * FROM MyTable
 WHERE CONTAINS(Address, 'Main St.')
 AND NameID LIKE '1%'

but this also doesn’t work:

 SELECT * FROM MyTable
 WHERE CONTAINS(NameID, '1');

Why can’t I query on the indexed, primary key column (Name) when I selected this column to be included with
the Address column when setting up the Full Text Index?

Thanks in advance!

  • 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-06-13T04:55:06+00:00Added an answer on June 13, 2026 at 4:55 am

    Since the NameID field is of type varchar, full-text will handle the indexing just fine.

    The reasoning behind CONTAINS(NameID, ‘1’) not returning any search results is that ‘1’ (and other such small numbers) are regarded as noise words by full-text and filtered out during indexing time.

    To get a list of the stop words, run the following query –

    select * from sys.fulltext_system_stopwords where language_id = 1033;
    

    You need to turn off or modify the stop list, an example of which can be found 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 with following columns (name : varchar), (mydate : DATE), (endtime
I have the following table: RecordID Name Col1 Col2 .... ColN The RecordID is
I have a (mysql) database table with the following columns: NAME | String (Unique)
I have a 300.000 rows table; one of the columns is a varchar() but
I have a table that includes the following column: mytable <- data.frame(beta_0 = c(1,2,3)
My table have following columns, (copy to create test table) CREATE TABLE dbo.[PDNApprovalDetail]( [PDNApprovalMasterID]
I have the following rows in my table COL1 EXTRA DOUBLE TEST 12 TEST
Imagine I have a SQL table with the following columns and values: +----+---------+------------+---------+------------+ |
I have a table with the following columns inspection_dt, contact_dt, description, product_mod, product_desc, contact_nm,
I have a table of the following kind: <table id=mytable width=500 border=1 cellspacing=0 cellpadding=0>

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.