SQL Server Compact -- how to check for encrypted SDF file?

Posted by Vikram on Stack Overflow See other posts from Stack Overflow or by Vikram
Published on 2010-04-24T06:41:19Z Indexed on 2010/04/24 6:43 UTC
Read the original article Hit count: 228

Filed under:

Is there a way to check if an SDF file is encrypted before calling SqlCeConnection.Open()? Or do you just try to open it without a password and catch a specific error -- maybe SSCE_M_INVALIDSRCPASSWORD?

© Stack Overflow or respective owner

Related posts about sql-server-ce