Showing posts with label compact. Show all posts
Showing posts with label compact. Show all posts

Sunday, February 19, 2012

Column encryption in SQL server Compact Edition?

I know that it is possible to encrypt data fields in SQL Server 2005, but I can't find anything about data encryption in the Compact Edition. Is this possible?

You can only encrypt the entire database file, by setting a password on the connection string used with the database:

Password-or-Pwd-or-database password-or-ssceBig Smileatabase password

The database password, which can be up to 40 characters in length. If not specified, the default value is no password. This property is required if you enable encryption on the database. If you specify a password, encryption is automatically enabled on the database.

Encrypt-or-encrypt database -or-ssce: encrypt database

A Boolean value that determines whether or not the database is encrypted. Must be set to true to enable encryption or false for no encryption. If not specified, the default value is false. If you enable encryption, you must also specify a password with the password property. If you specify a password, encryption is enabled regardless of how you set this property.

See this topic for a code sample on how to create a encrypted database:

http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceengine.aspx

|||Thanks for the reply. So it is not possible to encrypt data on a column only basis. It must be the full database. Is this just the case for Compact Edition?|||This is just the case for CE...|||Thankyou for the help. Im going to have to look into another solution, perhaps Oracle Lite. Cheers!
|||Oracle Lite only offers the ability to encrypt the entire database file as well.

There is nothing stopping you from doing the encryption in code.

Column encryption in SQL server Compact Edition?

I know that it is possible to encrypt data fields in SQL Server 2005, but I can't find anything about data encryption in the Compact Edition. Is this possible?

You can only encrypt the entire database file, by setting a password on the connection string used with the database:

Password-or-Pwd-or-database password-or-ssceBig Smileatabase password

The database password, which can be up to 40 characters in length. If not specified, the default value is no password. This property is required if you enable encryption on the database. If you specify a password, encryption is automatically enabled on the database.

Encrypt-or-encrypt database -or-ssce: encrypt database

A Boolean value that determines whether or not the database is encrypted. Must be set to true to enable encryption or false for no encryption. If not specified, the default value is false. If you enable encryption, you must also specify a password with the password property. If you specify a password, encryption is enabled regardless of how you set this property.

See this topic for a code sample on how to create a encrypted database:

http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceengine.aspx

|||Thanks for the reply. So it is not possible to encrypt data on a column only basis. It must be the full database. Is this just the case for Compact Edition?|||This is just the case for CE...|||Thankyou for the help. Im going to have to look into another solution, perhaps Oracle Lite. Cheers!
|||Oracle Lite only offers the ability to encrypt the entire database file as well.

There is nothing stopping you from doing the encryption in code.

Thursday, February 16, 2012

Column compression

Hi,

I was looking for a column compression functionality in SQL Server Compact and it seems that it doesn't exist (maybe I'm wrong?).

I wonder if the SQL Server Team plan to implement column compression and if yes, when can we expect it?

Thank you for your help!

Can't answer whether this is planned in the future, but can confirm that there is no compression feature in SQL CE now.

Darren

|||There is compression functionality for SQL Server 2005 (http://www.codeproject.com/cs/database/blob_compress.asp). The problem with SQL Server CE is that it does not support stored procedures and you will not be able to use this functionality. If you don't need to update the LOBs in your mobile device you can compress them in SQL Server, replicate them and decompress them at presentation time... but to answer your question we (the SQLCompress.NET people) are planning to create that functionality in SQL Server everywhere (whenever it gets released and functional)...

Column compression

Hi,

I was looking for a column compression functionality in SQL Server Compact and it seems that it doesn't exist (maybe I'm wrong?).

I wonder if the SQL Server Team plan to implement column compression and if yes, when can we expect it?

Thank you for your help!

Can't answer whether this is planned in the future, but can confirm that there is no compression feature in SQL CE now.

Darren

|||There is compression functionality for SQL Server 2005 (http://www.codeproject.com/cs/database/blob_compress.asp). The problem with SQL Server CE is that it does not support stored procedures and you will not be able to use this functionality. If you don't need to update the LOBs in your mobile device you can compress them in SQL Server, replicate them and decompress them at presentation time... but to answer your question we (the SQLCompress.NET people) are planning to create that functionality in SQL Server everywhere (whenever it gets released and functional)...