SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,767 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Max size of data decrypted by CONVERT(varchar, DecryptByKey(encripted_data)) is only 30?
Yes. Since you don't specify any length, you get a default of 30. With CONVERT, I should hasten to add. If you say
DECLARE @VAR varchar
you get varchar(1).
So always specify the length explicitly!