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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:08:20+00:00 2026-05-26T00:08:20+00:00

What are the main advantages of indexing the tables on SQL Server 2008 ?

  • 0

What are the main advantages of indexing the tables on SQL Server 2008?

Please explain with examples (if possible)..

Thanks

  • 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-26T00:08:21+00:00Added an answer on May 26, 2026 at 12:08 am

    Indexing provides a way to improve the performance of your data access queries. Suppose you have a table with different identifying columns. Putting an index on each column, or combinations of columns that are queried together will improve your response time.

    Example: you have a User table with columns:

    FirstName | LastName | ZipCode
    

    Put an index on LastName if you are querying on last name, such as:

    SELECT * FROM User where LastName = 'SMITH'
    

    Index could be:

    CREATE NONCLUSTERED INDEX [MyIndex] ON [User] 
    (
        [LastName] ASC
    ) WITH (
        PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, 
        SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, 
        ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON
    ) 
    ON [PRIMARY]
    

    Or, put an index on 2 columns if you are querying these columns together:

    SELECT * FROM User where LastName = 'SMITH' and ZipCode = '14222'
    

    Index could be:

    CREATE NONCLUSTERED INDEX [MyIndex] ON [User] 
    (
        [LastName] ASC,
        [ZipCode] ASC
    ) WITH (
        PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, 
        SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, 
        ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON
    ) 
    ON [PRIMARY]
    

    All else equal, your queries will be faster if you create the index. Be careful though, too many indices may actually decrease performance.

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

Sidebar

Related Questions

Can somebody explain the main differences between (advantages / disadvantages) the two implementations? For
What are the main advantages (and disadvantages) of using of an Application Server, comparing
Can anyone explain the main advantages of Flex3.0 over flex2.0 ? (not advantages of
Possible Duplicate: Advantages of using arrays instead of std::vector? What are the main advantages/disadvantages
What are the main advantages of each of the above database connection methods in
What are the main differences, advantages and disadvantages between static and dynamic data structures?
In interview I was ask that as re-usability is one of the main advantages
What are the advantages and disadvantages of having just one main loop and having
Possible Duplicate: Advantages of std::for_each over for loop So I was playing around with
From Wikipedia : The main disadvantages are greater overall space usage and slower indexing,

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.