Solved

ASA6 force index usage

Posted on 2003-11-28
5
409 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Installing Sybase IQ 16.x x64 on Windows 8.1 update1 5 1,613
sql anywhere query 5 148
Call sybase stored procedure from php 8 94
In T-SQL cursor convert smallint to varchar 15 52
Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
We asked our MSP customer base what their favorite tools were and how they help them serve clients. We focused our questions on favorite tools in the following categories: >PSA tools >RMM tools >Alert management tools >Communication tools and Mo…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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