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

  • Home
  • SEARCH
  • 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 517229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:48:46+00:00 2026-05-13T07:48:46+00:00

Two examples are: Columns that will show up in a queries where clause (where

  • 0

Two examples are:

  1. Columns that will show up in a queries where clause (where Name = “xtz”)
  2. Columns that you are going to order (sort) on in queries

Is this correct and are there other important use cases?

Can SQL Server recommend fields to index based on usage patterns ?

  • 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-13T07:48:46+00:00Added an answer on May 13, 2026 at 7:48 am

    You will know if your performance is not good enough.

    The things you mention are parts of the solution already. In addition to those two, I would also add:

    • put an index on any foreign key columns in the child table

    That helps tremedously when doing JOINs and it’s not done automatically by SQL Server (contrary to a common place urban myth floating around, SQL Server has never automatically put any indices on foreign keys).

    Yes, as of SQL Server 2008, if you include the Actual Execution Plan in your query in SQL Server Management Studio, it can give you some hints as to what indices might help.

    BUT CAREFUL: with this, you’re just tuning a single SQL query. You can tune that to the moon and back, but still have awful performance, since a single query often isn’t the whole story, and tuning one query to perform extremely well can negatively impact the rest of the system.

    To REALLY know what to tune and how to tune it, you’ll need to capture actual real life usage data, using SQL Server profiler traces, over an extended period of time and at various times of the day of your system being in use, and examine those.

    Read up on SQL Server Profiling:

    • Introducting SQL Server Profiler
    • Six part video series on how to become a SQL Server Profiler Master
    • How to identify slow running queries

    Marc

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

Sidebar

Related Questions

I have a table that has two columns, ID and Value. For this example
First, two examples: // This works int foo = 43; long lFoo = foo;
Is there a difference between the two examples below for beginning a Perl script?
The examples I can find use a two layer architecture, where the controllers directly
For two threads manipulating a container map for example, what the correct way to
I'm really thinking that in the years ahead, I will be creating internal apps
I have two columns in a spreadsheet called A1 and A2. The data entered
I have two data.frames in R, one of which has two columns and of
The example program below compiles two in-memory assemblies. The first compilation works fine. The
Example: I have two shared objects (same should apply to .dlls). The first shared

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.