Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
ORDER BY not working in encrypted database
Gary Lynch
2016-08-31 02:59:48.0
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.0
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.0
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
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap