简体   繁体   中英

Determine if SDF database is encrypted

Is there any way to determine, before connecting and having an exception thrown, if an SQL Compact Edition SDF has password encryption?

After selecting the file in an Open File Dialog , I want to check if there is a password encrypting the SDF and prompt for the password.

A quick way to determine if any file is either encrypted or compressed is to try and compress it again. Obviously SQLCE does not support compression, so if the SDF cant compress, it is encrypted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM