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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:50:05+00:00 2026-06-06T03:50:05+00:00

I have two questions. Does it make sense when I have to choice of

  • 0

I have two questions.

  1. Does it make sense when I have to choice of a clustered index on an Integer type column instead of choosing it over string values type column.

Why?

The clustered index will cause a reordering of the page data whenever an INSERT is processed because the new row is not appended to the end of the index but inserted in the middle

I am right? Any other reason for Choosing the clustered Index for Integer type column? Or I am moving in wrong direction?

  1. When I have to search a string using %...% like below query

    Select Column1 From Table1 Where Column1 Like '%SomeVal%'
    

I have following questions for this.

  1. Does it make sense to use %....% in the above situation?
  2. Can I put the clustered index for Column1 and then go for %....%
  3. Should I choose full-text indexing? If so why I should prefer full-text indexing over %...% ?
  • 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-06T03:50:08+00:00Added an answer on June 6, 2026 at 3:50 am
    1. Yes, SQL Server (and computers in general) are faster at looking through lists of numbers than they are through lists of text. That means that it’s generally faster to search for a record WHERE ID = 3 than WHERE FirstName = ‘BOB’. That works great if you’re system is geared up to track one or the other, like when the user clicks on a product you can choose to store the ProductID or the ProductName, the ProductID will pull faster. However, if the only column that’s going to be in that WHERE clause is a text filed, like you’re always looking for a movie by its title, then you’re probably better off putting your clustered index on that column. As a general rule I have an integer ID field with the clustered index and then put a nonclustered index on the other field, but it really depends on the situation.

    2. FTS is word-based while wildcards (%) are pattern-based, so if you need to search a text field for “Patricia”, FTS would probably be your best choice, but if you needed to search for “Pat%” to look for “Patrick” or “Pattie” or “Patricia”, FTS will not work well. I hope that makes sense. Search StackOverflow or google for “fts vs like” and you’ll get a few discussions on the matter.

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

Sidebar

Related Questions

I have two questions here. How can I show the header of the pop
I have two questions. How can I get the spinner in the figure below
I have two questions. Question1: How can we add a reference to a third-party
I have two questions. I know it is possible to declare class objects in
I have two questions. I want to send SMSes from a web-site in PHP
I have two questions in regards to the PyDev (Python editor for Eclipse) and
I have two questions: 1) I have a few global variables for my website
I have two questions: (1) I learned somewhere that -O3 is not recommended with
I have two questions: From personal experience, what free blog engine is the best
Does it make sense to split a table just for the sake of clearness,

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.