my query is
select
Tbl
.Code as Codefrom
DbName..Tbli cant get encrypted data from Table Tbl
select
Tbl
.Code as Codefrom
DbName..TblKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #1,422 · 1.2K reputationPosted Mar 24, 2011, 8:27 AM EDT
OPEN SYMMETRIC KEY SSN_Key_01
DECRYPTION BY CERTIFICATE HumanResources037;
GO
-- Now list the original ID, the encrypted ID, and the
-- decrypted ciphertext. If the decryption worked, the original
-- and the decrypted ID will match.
SELECT NationalIDNumber, EncryptedNationalID
AS 'Encrypted ID Number',
CONVERT(nvarchar, DecryptByKey(EncryptedNationalID))
AS 'Decrypted ID Number'
FROM HumanResources.Employee;
GO
Guest UserRank #1,422 · 1.2K reputationPosted Mar 24, 2011, 8:25 AM EDT
http://msdn.microsoft.com/en-us/library/ms181860.aspx
Suthish NairRank #92 · 22.8K reputationPosted Mar 24, 2011, 9:19 AM EDT
Why you creating duplicate post. Edit the existing thread only for any changes.
http://www.c-sharpcorner.com/Forums/Thread/114082/select-query-for-encrypted-data-from-another-database.aspx