Ivan Yuzafatau
Ivan Yuzafatau

Reputation: 630

How can I force ADS to use a specific index when executing a SELECT query?

For example, I know how to do this in SQL Server. I can write something like the following: SELECT * FROM MyTable WITH(INDEX(MyIndex))

I didn't find anything similar for Advantage Database Server..

Upvotes: 0

Views: 54

Answers (1)

TylerH
TylerH

Reputation: 21070

Converting the solution from a comment to an answer:

There isn't anything similar in ADS. It chooses the appropriate index internally based on the columns in the query and the WHERE clause.
Ken White  Apr 19, 2024 at 2:14

Upvotes: 0

Related Questions