Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Query speed problem after encryption

Author  Topic 

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2009-01-30 : 07:05:46
I applied encryption (Encryption By Key)to secur my data, in almost all of my table, but on selected columns in each table.
BUT
my simple select query even become 700% slow.

defenitly when i select records i need to decrypt all the encrypted data.

How can i improve my query performance.

* All the indexes are carefully applied and statisics are updated

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-30 : 07:24:25
You can't use indexes when searching on encrypted columns.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2009-01-30 : 07:34:24
Encrypting data in a database is not such a good idea for exactly this reason. The only stuff I encrypt in the databases I work with are credit card numbers and passwords.

- Lumbago
Go to Top of Page
   

- Advertisement -