I doing my first encryptionwork with sql server. So far so good when using embedded vlaues
This works fine
INSERT INTO TDterminals (cid,number,expdate,secid) VALUES (456, encryptbykey( @KeyGuid, N'4549-5678-4444-4444),'05/2010', 222)
Now I want to replace the credit card number '4549-5678-4444-4444444444' with a Var. Declare @ccnbr char(16) SET @CCNBR = '4549-5678-4444-4444
I cant fingure out what to do with the "N" showing in front of the embedded card number N'4549-5678-4444-4444'
If I remove it and replace the number with @ccmbr it goes in the data base but is unreadable on the way out.
I'm staring at BOL and I beleive this is the cleartext attribut but am not sure how to set it up.
Any Help appreciated.
This works fine
INSERT INTO TDterminals (cid,number,expdate,secid) VALUES (456, encryptbykey( @KeyGuid, N'4549-5678-4444-4444),'05/2010', 222)
Now I want to replace the credit card number '4549-5678-4444-4444444444' with a Var. Declare @ccnbr char(16) SET @CCNBR = '4549-5678-4444-4444
I cant fingure out what to do with the "N" showing in front of the embedded card number N'4549-5678-4444-4444'
If I remove it and replace the number with @ccmbr it goes in the data base but is unreadable on the way out.
I'm staring at BOL and I beleive this is the cleartext attribut but am not sure how to set it up.
Any Help appreciated.