﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Encrpted Columns in Table / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 04:19:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Encrpted Columns in Table</title><link>http://www.sqlservercentral.com/Forums/Topic1380943-391-1.aspx</link><description>Coverting to Nvarchar resolved the issue.</description><pubDate>Mon, 05 Nov 2012 09:11:36 GMT</pubDate><dc:creator>emile.milne</dc:creator></item><item><title>RE: Encrpted Columns in Table</title><link>http://www.sqlservercentral.com/Forums/Topic1380943-391-1.aspx</link><description>The surname column is varbinary(200) in the table.</description><pubDate>Mon, 05 Nov 2012 03:57:43 GMT</pubDate><dc:creator>emile.milne</dc:creator></item><item><title>Encrpted Columns in Table</title><link>http://www.sqlservercentral.com/Forums/Topic1380943-391-1.aspx</link><description>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 EncrypteddbGOOPEN MASTER KEY DECRYPTION BY PASSWORD = 'Masterkeypassword' OPEN SYMMETRIC KEY EncryptionKeyDECRYPTION BY CERTIFICATE EncryptionCertificate;SELECT CONVERT(VARCHAR(500),DECRYPTBYKEY(surname)) AS surname, *FROM dbo.encrypted_tableGO</description><pubDate>Mon, 05 Nov 2012 02:56:18 GMT</pubDate><dc:creator>emile.milne</dc:creator></item></channel></rss>