Solved

ASA6 force index usage

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data source name not found , no default driver specified. ODBC, Excel and SqlAnywhere 3 2,574
SQL Syntax 6 393
Crystal Reports 8.5 hangs 11 95
install sybase 15.7 over 15.0.x 2 46
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
Read about the ways of improving workplace communication.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now