Quantcast
Channel: SQL Server Security forum
Viewing all articles
Browse latest Browse all 3042

Reading Data from Encrypted Table of MSSQL2008

$
0
0
I encrypt the database columns using symmetric or asymmetric keys. When decrypt the encrypted columns, the query is as follows:

OPEN SYMMETRIC KEY SymmetricKey1 DECRYPTION BY CERTIFICATE Certificate1;
SELECT *  FROM table;
CLOSE SYMMETRIC KEY SymmetricKey1;

Similarly, I need to update all similar SELECT queries in my C# application (I need to use OPEN and CLOSE key). I'm new to C# and I have a database which is MSSQL2008.  I couldn't find any document about reading data from encrypted columns without changing my queries in the app. Is there any way I can use regarding this? 

Viewing all articles
Browse latest Browse all 3042

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>