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.
| Author |
Topic |
|
AAAV
Posting Yak Master
152 Posts |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2010-03-19 : 10:40:03
|
| I do not see anything in that article that says you can find the key and decrypt it using that query.CODO ERGO SUM |
 |
|
|
AAAV
Posting Yak Master
152 Posts |
Posted - 2010-03-19 : 10:52:08
|
| i am not blaming the article... but i am not understanding something.you can decrypt using OPEN SYMMETRIC KEY PasswordFieldSymmetricKeyDECRYPTION BY CERTIFICATE PasswordFieldCertificate;SELECT EmailAddress, EncryptedEmailAddress,CONVERT(nvarchar, DecryptByKey(EncryptedEmailAddress)) AS 'Decrypted Email Address'FROM Person.Contact;GOfor which you can get the key and certificate by SELECT * FROM sys.symmetric_keysSELECT * FROM sys.certificatesso what is the point in encrypting? Only admins will be able to run the sys queries? |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2010-03-19 : 12:08:17
|
| That article does not show the "authorization" key word that is used to specify the user that will have access to use the key.For example, you can authorize DBO to use the key, and then DBO stored procedures could use the key, but ordinary users would not be able to use it, as long as they are not in the DB_OWNER role.CODO ERGO SUM |
 |
|
|
|
|
|