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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:40:32+00:00 2026-06-02T01:40:32+00:00

I have a table with two indexes – PK clustered index and non-clustered index.

  • 0

I have a table with two indexes – PK clustered index and non-clustered index. For some reason sql server decided it would be a better idea to use a non-clustered index what results in 30 min execution time (few seconds with clustered index). Is it possible to create a hint that would default to clustered index without knowing it name? I would like to use it as temp solution to give some more time for investigation.

  • 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-02T01:40:35+00:00Added an answer on June 2, 2026 at 1:40 am

    Use table hints!

    FROM MSDN:

    If a clustered index exists, INDEX(0) forces a clustered index scan
    and INDEX(1) forces a clustered index scan or seek.

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

Sidebar

Related Questions

Hypothetically, in a SQL Server database, if I have a table with two int
I have a table t1 and two indexes: create index if not exists timeindex
I am struggling understanding what a clustered index in SQL Server 2005 is. I
I have a table with two indexes, one of which is the faster covering
I have a Products table in a SQL Server database and I am having
I have a table with unique index on two columns, id_parent and sort_order to
I have table with two columns (varchar from, varchar to). This table represents connections
I have table with two columns (startdate & enddate) and I have two submission
i work with php/Mysql i have table with two cols (date , cash) with
I have two table views, when user clicks one cell of the first, second

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.