<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server 2005: A look at the master keys</title><link>http://blogs.msdn.com/lcris/archive/2005/07/08/sql-server-2005-a-look-at-the-master-keys.aspx</link><description>I'd like to go into this post over the service and database master keys and explain the basics of how these are used in SQL Server 2005. Note: credentials and asymmetric keys are new types of entities in SQL Server 2005 and, unless qualified otherwise,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: SQL Server 2005: A look at the master keys</title><link>http://blogs.msdn.com/lcris/archive/2005/07/08/sql-server-2005-a-look-at-the-master-keys.aspx#636428</link><pubDate>Mon, 19 Jun 2006 04:47:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:636428</guid><dc:creator>kt</dc:creator><description>Thanks for the info.
&lt;br&gt;
&lt;br&gt;I have a question: what should &amp;nbsp;I do if I need to restore a database , that has encrypted data, to a different server? &amp;nbsp;The database can have millions of rows of &amp;nbsp;encrypted data.
&lt;br&gt;
&lt;br&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys</title><link>http://blogs.msdn.com/lcris/archive/2005/07/08/sql-server-2005-a-look-at-the-master-keys.aspx#639941</link><pubDate>Tue, 20 Jun 2006 20:40:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:639941</guid><dc:creator>lcris</dc:creator><description>See the answer in the second part of this article: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/lcris/archive/2005/09/30/475822.aspx"&gt;http://blogs.msdn.com/lcris/archive/2005/09/30/475822.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;Basically, you only need to restore the SMK encryption of the DbMK on the new server, if such encryption existed on the original server. To do this, on the new server you need to issue the following statements:
&lt;br&gt;
&lt;br&gt;OPEN MASTER KEY DECRYPTION BY PASSWORD = '...'
&lt;br&gt;ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY
&lt;br&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys</title><link>http://blogs.msdn.com/lcris/archive/2005/07/08/sql-server-2005-a-look-at-the-master-keys.aspx#8916545</link><pubDate>Mon, 01 Sep 2008 16:07:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8916545</guid><dc:creator>jimbobmcgee</dc:creator><description>&lt;p&gt;Apologies for posting this so late after the article date, but I'm having a problem with my SMK and you seem like the best person to ask. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I try to issue a CREATE CREDENTIAL call, I am told 'An error occurred during decryption'&lt;/p&gt;
&lt;p&gt;I have tried to issue an ALTER SERVICE MASTER KEY FORCE REGENERATE, as per your suggestions elsewhere, but am told 'An error occurred during encryption'.&lt;/p&gt;
&lt;p&gt;As per another suggestion, I have checked the permissions on the Protect folder in the App Data of SQL Server's service account (a domain account, that I used SQL Server Configuration Manager' to configure) and it seems fine.&lt;/p&gt;
&lt;p&gt;Are you able to help?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;J.&lt;/p&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys</title><link>http://blogs.msdn.com/lcris/archive/2005/07/08/sql-server-2005-a-look-at-the-master-keys.aspx#8920454</link><pubDate>Tue, 02 Sep 2008 21:43:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8920454</guid><dc:creator>lcris</dc:creator><description>&lt;p&gt;Have a look at this more recent article and see if it helps you: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/lcris/archive/2007/11/14/sql-server-2005-how-to-recover-when-the-service-master-key-smk-is-not-accessible.aspx"&gt;http://blogs.msdn.com/lcris/archive/2007/11/14/sql-server-2005-how-to-recover-when-the-service-master-key-smk-is-not-accessible.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If not, then please post this issue in the Security forum (&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=92&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=92&amp;amp;SiteID=1&lt;/a&gt;) and we'll continue the discussion there.&lt;/p&gt;
</description></item></channel></rss>