﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Problem with encryption / 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>Sat, 18 May 2013 17:55:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Please run the following and post the results:SELECT @@Version</description><pubDate>Thu, 18 Sep 2008 04:42:22 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>really I did not understand what is your problem.</description><pubDate>Thu, 18 Sep 2008 04:15:13 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Database test exist</description><pubDate>Thu, 18 Sep 2008 02:36:11 GMT</pubDate><dc:creator>maykabog</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>may be you do not have test database in your server. use your database name in place of test. or execute the below statementCREATE DATABASE test</description><pubDate>Thu, 18 Sep 2008 00:46:37 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Are you new to SQL Server.</description><pubDate>Thu, 18 Sep 2008 00:45:11 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>I tryed to execute step 1 and reseive this message:Incorrect sysntax neas MASTER</description><pubDate>Thu, 18 Sep 2008 00:25:50 GMT</pubDate><dc:creator>maykabog</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Please execute the below script step by step and let me know where the scrip is getting fail.--Step 1: Create database masterkey for TestUSE TestCREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Raj3sH'--Step 2: Create database certificate CREATE CERTIFICATE Certificate1 WITH SUBJECT = 'Test'--Step 3: Create a symetric key encrypted by the certificateCREATE SYMMETRIC KEY TestKey09 WITH ALGORITHM = TRIPLE_DES  ENCRYPTION BY CERTIFICATE Certificate1;GO--Step 4: Create a Column in which to store the encrypted dataCREATE TABLE TEST (ID VARCHAR(80), EncrypIDN  varbinary(128))goALTER TABLE TEST ADD EncrypIDN varbinary(128)--Step 5: Open the symetric key with which to encrypt the dataOPEN SYMMETRIC KEY TestKey09 DECRYPTION BY CERTIFICATE Certificate1;--Step 6DECLARE @I INTSET @I = 100WHILE @I &amp;lt;&amp;gt;0BEGIN   INSERT INTO TEST(ID) VALUES(@I)   SET @I = @I -1ENDGOUPDATE TEST SET EncrypIDN = EncryptByKey(Key_GUID('TestKey09'),ID)--Step 7: Open the symetric key with which to decrypt the dataOPEN SYMMETRIC KEY TestKey09 DECRYPTION BY CERTIFICATE Certificate1;--Step 8: Compare the dataSELECT ID, EncrypIDN, CONVERT(varchar,DECRYPTBYKEY(EncrypIDN)) FROM TESTRegardsRajesh Kasturi</description><pubDate>Thu, 18 Sep 2008 00:12:38 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>I do not think you need to do some thing with sp or operating system. Please tell me little bit more what is the exact problem you are facing.</description><pubDate>Wed, 17 Sep 2008 23:59:10 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Hi,thanks for your replay,but it didn't help me.I think that there is a problem with some settings.Maybe I have to install some service pack?Or to do something in operating system?</description><pubDate>Wed, 17 Sep 2008 23:51:17 GMT</pubDate><dc:creator>maykabog</dc:creator></item><item><title>RE: Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>You are giving expiry date '01/01/2006' Execute as below it will be okCREATE CERTIFICATE ElmerEncryptionCertificate    WITH       SUBJECT = 'Elmer Certificate',       EXPIRY_DATE = '01/01/2009'RegardsRajesh Kasturi</description><pubDate>Wed, 17 Sep 2008 23:16:39 GMT</pubDate><dc:creator>Rajesh kasturi</dc:creator></item><item><title>Problem with encryption</title><link>http://www.sqlservercentral.com/Forums/Topic571477-146-1.aspx</link><description>Hi,I can't execute any of encryption commands.For example,when I write :CREATE CERTIFICATE ElmerEncryptionCertificate    WITH       SUBJECT = 'Elmer Certificate',       EXPIRY_DATE = '01/01/2006 'I receice :Incorrect syntax near 'CERTIFICATE'.I have installed SP2.Can anyone help me pls?</description><pubDate>Wed, 17 Sep 2008 23:07:13 GMT</pubDate><dc:creator>maykabog</dc:creator></item></channel></rss>