Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
ORDER BY not working in encrypted database
Gary Lynch
2016-08-31 02:59:48
I use the PACK DATABASE command to encrypt the Access database and am noticing that some queries are returning a ResultSet ordered incorrectly. This appears to have been happening since I updated to a newer release some time ago.

For example:

SELECT columnName
FROM tableName
WHERE floatValue>5
ORDER BY floatValue

Will always return the rows ordered descending, even if I append ASC to the end.

If I do:

SELECT columnName FROM
( SELECT columnName
FROM tableName
WHERE floatValue>5
)
ORDER BY floatValue

then the ResultSet is ordered correctly.
Re:ORDER BY not working in encrypted database
HXTT Support
2016-08-31 04:18:54
Please check whether your tableName has a descending index on floatValue.
Re:Re:ORDER BY not working in encrypted database
Gary Lynch
2016-08-31 07:57:17
There was an index on the table but I removed it and it was still a problem.

I think I have fixed it now. The encrypted database was created using a slightly different version of the .jar to the one that was used in my application. Changing the application to use the same .jar file solves the problem.


Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap