Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are there index hints in Pervasive

Status
Not open for further replies.

john230873

Programmer
Oct 3, 2003
89
NZ
Are there index hints in Pervasive 2000i?
 
That's kind of vague. What kind of hints are you looking for? What are you trying to do? Is it not working the way you expect? Give us a little more information.


info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
We use dataflex as the main programming tool. In this you can tell the program which index to use and the program works fine. In pervasive SQL I would like to inform the query which index to use as I beleive it is chossing the wrong one and taking more time that is needed.

 
There's no way from an SQL statement to tell the engine which index to use. You can use the Query Plan Viewer to check to make sure that it's using the right index.
From a Btrieve perspective, you can tell it which index to use.

What's the query you are issuing and what index do you think it should be using? Also, how are you determining that it's not using the proper index?



info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top