When I run the following it only returns one character for the surname field.
Any Ideas why I'm not geting the full surname.
USE Encrypteddb
GO
OPEN MASTER KEY DECRYPTION BY PASSWORD = 'Masterkeypassword'
OPEN SYMMETRIC KEY EncryptionKey
DECRYPTION BY CERTIFICATE EncryptionCertificate;
SELECT CONVERT(VARCHAR(500),DECRYPTBYKEY(surname)) AS surname, *
FROM dbo.encrypted_table
GO