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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:56:04+00:00 2026-05-13T13:56:04+00:00

I use a similar query like this select…..from.. with… (INDEX=IX_TABLE_1, INDEX=IX_TABLE_2)… I get the

  • 0

I use a similar query like this

select.....from.. with... (INDEX=IX_TABLE_1, INDEX=IX_TABLE_2)...

I get the following error

Only one list of index hints per table
is allowed

This seems to be working well with SQL Server 2005. Is it an issue with SQL server?

  • 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-13T13:56:05+00:00Added an answer on May 13, 2026 at 1:56 pm

    I think it may be because of the syntax you’re using.

    Instead of (INDEX=IX_TABLE_1, INDEX=IX_TABLE_2), try:

    (INDEX=IX_TABLE_1, IX_TABLE_2)
    

    I think it is the fact you have 2 “INDEX=” parts.

    Also, I would recommend only using index hints as a last resort as the query optimiser should generally choose the best plan/indexes to use. This is why generally, you should trust the optimizer. If you do use index hints, it’s a good idea to review them fairly frequently as they may become worse over time (e.g. as data volumes grow, what did originally perform better with the hint, may start performing worse).

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

Sidebar

Related Questions

I have a query similar to this: SELECT itemID FROM itemTable WHERE itemID LIKE
I'm trying to use a PreparedStatement with code similar to this: SELECT * FROM
I use for searching in database similar query to this: SELECT * , MATCH
I've seen this nice effect and I would like to use something similar in
actually i use this method to show similar words for a search request.. $query
Basically, I am doing something like this: select a.name from schedule as a where
I have a simple query: select * from countries with the following results: country_name
please take a look of this query: SELECT DATE(datetime), COUNT(1) as numVisits FROM .table_stats.
If you do a join that looks like this SELECT T1.KeyField1, T1.KeyField2, T2.Field3 FROM
I have the following code, i use v similar code on many pages but

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.