Solved

ASA6 force index usage

Posted on 2003-11-28
5
415 Views
Last Modified: 2012-05-04
I have Adaptive Server Anywhere version 6.
I have discovered in ISQL that, with the very same SQL statement, the engine doe not always choose the same index to retrieve the records. There must me some smart mechanism that tries to find out what the optimal index will be.
Sometimes I do not agree with the index chosen, so i would like to know I there is a way to force a specific index.
0
Comment
Question by:jvv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 6

Expert Comment

by:ChrisKing
ID: 9837813
On the assumption that ASA is similar to ASE ...

this is the format for ASE:
SELECT *
FROM yourtable (INDEX yourindexname)
WHERE ....
0
 

Author Comment

by:jvv
ID: 9838213
I tried it in ISQL.
The syntax is accepted, but the index clause is ignored.....:-((
0
 
LVL 6

Expert Comment

by:ChrisKing
ID: 9838257
sorry ... can't help with ASA
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11535080
PAQed, with points refunded (250)

Computer101
E-E Admin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's take a look back at the commercialization of the internet to understand why keeping it open and neutral is in our best interest as a society.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question