<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Stored Procedure WITH ENCRYPTION and Execution Plan</title>
	<atom:link href="http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Maffin</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-419134</link>
		<dc:creator><![CDATA[Maffin]]></dc:creator>
		<pubDate>Thu, 07 Feb 2013 15:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-419134</guid>
		<description><![CDATA[Thank you Pinal, i like you blog. Your posts are so helpful and to the point.]]></description>
		<content:encoded><![CDATA[<p>Thank you Pinal, i like you blog. Your posts are so helpful and to the point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Johanneson</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-397118</link>
		<dc:creator><![CDATA[Jens Johanneson]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 11:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-397118</guid>
		<description><![CDATA[and of course &quot;We’ve moved away from decrypting sprocs.&quot; should be We’ve moved away from ENCRYPTED sprocs.&quot;]]></description>
		<content:encoded><![CDATA[<p>and of course &#8220;We’ve moved away from decrypting sprocs.&#8221; should be We’ve moved away from ENCRYPTED sprocs.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Johanneson</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-397116</link>
		<dc:creator><![CDATA[Jens Johanneson]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 11:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-397116</guid>
		<description><![CDATA[As pleitch already states - it is possible to decrypt sprocs. If you have a few you don&#039;t need a special tool. Instead google &quot;dac decrypt sprocs&quot;. 

A strong word of caution:
We&#039;ve moved away from decrypting sprocs. 

Search for &quot;Now to the not so good sides&quot; on:

http://blog.sqlauthority.com/2006/12/10/sql-server-find-stored-procedure-related-to-table-in-database-search-in-all-stored-procedure/ 

to understand why.]]></description>
		<content:encoded><![CDATA[<p>As pleitch already states &#8211; it is possible to decrypt sprocs. If you have a few you don&#8217;t need a special tool. Instead google &#8220;dac decrypt sprocs&#8221;. </p>
<p>A strong word of caution:<br />
We&#8217;ve moved away from decrypting sprocs. </p>
<p>Search for &#8220;Now to the not so good sides&#8221; on:</p>
<p><a href="http://blog.sqlauthority.com/2006/12/10/sql-server-find-stored-procedure-related-to-table-in-database-search-in-all-stored-procedure/" rel="nofollow">http://blog.sqlauthority.com/2006/12/10/sql-server-find-stored-procedure-related-to-table-in-database-search-in-all-stored-procedure/</a> </p>
<p>to understand why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #001 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-368284</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #001 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 01:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-368284</guid>
		<description><![CDATA[[...] Stored Procedure WITH ENCRYPTION and Execution Plan If you have stored procedure and its code is encrypted when you execute it what will be displayed in the execution plan. There are two kinds of execution plans 1) Estimated and 2) Actual. It will be indeed interesting to know what is displayed in both the cases when Stored Procedure is encrypted. What is your guess? Now go ahead and click on here and figure out your answer. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Stored Procedure WITH ENCRYPTION and Execution Plan If you have stored procedure and its code is encrypted when you execute it what will be displayed in the execution plan. There are two kinds of execution plans 1) Estimated and 2) Actual. It will be indeed interesting to know what is displayed in both the cases when Stored Procedure is encrypted. What is your guess? Now go ahead and click on here and figure out your answer. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-364927</link>
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Fri, 26 Oct 2012 10:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-364927</guid>
		<description><![CDATA[Well these stored procs in this example were created with a hash in the front of the name, therefore they are TEMP stored procs, just like temp tables. That&#039;s why you can&#039;s see them in the Stored Procedures list on the server]]></description>
		<content:encoded><![CDATA[<p>Well these stored procs in this example were created with a hash in the front of the name, therefore they are TEMP stored procs, just like temp tables. That&#8217;s why you can&#8217;s see them in the Stored Procedures list on the server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Reid</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-304205</link>
		<dc:creator><![CDATA[Rob Reid]]></dc:creator>
		<pubDate>Fri, 22 Jun 2012 05:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-304205</guid>
		<description><![CDATA[Try right clicking the Stored Procedures folder and select &quot;Refresh&quot;]]></description>
		<content:encoded><![CDATA[<p>Try right clicking the Stored Procedures folder and select &#8220;Refresh&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pleitch</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-299127</link>
		<dc:creator><![CDATA[pleitch]]></dc:creator>
		<pubDate>Sun, 10 Jun 2012 17:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-299127</guid>
		<description><![CDATA[Hi Vinay

You asked about decrypting &quot;With Encryption&quot; scripts.  There&#039;s a tool here that will do it but only if you are an admin on that SQL Server:

http://www.sqladmintools.com/decrypting-scripts.aspx]]></description>
		<content:encoded><![CDATA[<p>Hi Vinay</p>
<p>You asked about decrypting &#8220;With Encryption&#8221; scripts.  There&#8217;s a tool here that will do it but only if you are an admin on that SQL Server:</p>
<p><a href="http://www.sqladmintools.com/decrypting-scripts.aspx" rel="nofollow">http://www.sqladmintools.com/decrypting-scripts.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sridhar</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-235320</link>
		<dc:creator><![CDATA[Sridhar]]></dc:creator>
		<pubDate>Wed, 11 Jan 2012 14:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-235320</guid>
		<description><![CDATA[Hi,
    Good example, But if i know the SP name(EncryptSP) . Use this name, I can able to modify the SP. So, What is the use of ENCRYPTION.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
    Good example, But if i know the SP name(EncryptSP) . Use this name, I can able to modify the SP. So, What is the use of ENCRYPTION.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajat Jaiswal</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-122648</link>
		<dc:creator><![CDATA[Rajat Jaiswal]]></dc:creator>
		<pubDate>Thu, 10 Mar 2011 07:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-122648</guid>
		<description><![CDATA[Hi,
I would like add one more question here how  SQL server internally handle this ?
what are the performance constraint ?

although i found many articles that it is not safe enough it can easily be decrypted so is there any other way?

Thanks
Rajat]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I would like add one more question here how  SQL server internally handle this ?<br />
what are the performance constraint ?</p>
<p>although i found many articles that it is not safe enough it can easily be decrypted so is there any other way?</p>
<p>Thanks<br />
Rajat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLNewbie</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-69321</link>
		<dc:creator><![CDATA[SQLNewbie]]></dc:creator>
		<pubDate>Wed, 05 May 2010 18:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-69321</guid>
		<description><![CDATA[Where are these SPs stored?  I created them in the AdventureWorks db and was able to run them, however when I looked in the AdventureWorks\Programmability\Stored Procedures directory, neither SP was there.

Also, what are your thoughts on creating an encrypted SP that queries encrypted data?  Is this a good/bad way to keep the keys and certificate hidden?

Thanks for your help.]]></description>
		<content:encoded><![CDATA[<p>Where are these SPs stored?  I created them in the AdventureWorks db and was able to run them, however when I looked in the AdventureWorks\Programmability\Stored Procedures directory, neither SP was there.</p>
<p>Also, what are your thoughts on creating an encrypted SP that queries encrypted data?  Is this a good/bad way to keep the keys and certificate hidden?</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-64909</link>
		<dc:creator><![CDATA[Vinay]]></dc:creator>
		<pubDate>Fri, 09 Apr 2010 09:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-64909</guid>
		<description><![CDATA[Hi,

   I am having about 1000 store procedure and view.  
   Is there any way to generate store procedure and view objects encrypted script?


Thx in advance


Vinay K]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>   I am having about 1000 store procedure and view.<br />
   Is there any way to generate store procedure and view objects encrypted script?</p>
<p>Thx in advance</p>
<p>Vinay K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bala</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-62456</link>
		<dc:creator><![CDATA[Bala]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 06:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-62456</guid>
		<description><![CDATA[Hi All,
            There are decrypters available in Net to decrypt all our Encrypted SPs..So how to make our logic protected from those decrypters..we have to use our own encription algo (:&#039;( ) or any loop holes are there ?? any idea?]]></description>
		<content:encoded><![CDATA[<p>Hi All,<br />
            There are decrypters available in Net to decrypt all our Encrypted SPs..So how to make our logic protected from those decrypters..we have to use our own encription algo (:&#8217;( ) or any loop holes are there ?? any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gajanan</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-44029</link>
		<dc:creator><![CDATA[Gajanan]]></dc:creator>
		<pubDate>Mon, 03 Nov 2008 11:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-44029</guid>
		<description><![CDATA[Hi Pinal,

I would like to know the performance impact of using temp tables in stored procedures. I believe temp table cause SP recompilation.

I would like to why and when this causes the stored procudre to recompile? I would also like to know the improvement in SQL 2005.

Thank you.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I would like to know the performance impact of using temp tables in stored procedures. I believe temp table cause SP recompilation.</p>
<p>I would like to why and when this causes the stored procudre to recompile? I would also like to know the improvement in SQL 2005.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-44017</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sun, 02 Nov 2008 16:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-44017</guid>
		<description><![CDATA[Pinal, 
Thanks for this Tip.

Worth noting is, this concept works only with SQL Server 2005. I tried doing this in SQL Server 2000. Even if you include With encryption in your stored proc, in SQL Server 2000 you will be able to see the execution plan. Since you did not mention this in your article I thought it will work in both. 

@mdma

Main Idea behind using with encryption is to hide the SQL Code, not the execution plan. Like Pinal mentioned in his article, many business logics are written in stored procedures which companies do not want others to know. This is the case especially with COTS products. 

In SQL Server 2005 SSMS ( Object explorer ), you can see a Lock symbol on stored procedure name indicating this stored procedure is encrypted.


Thanks,
Imran.]]></description>
		<content:encoded><![CDATA[<p>Pinal,<br />
Thanks for this Tip.</p>
<p>Worth noting is, this concept works only with SQL Server 2005. I tried doing this in SQL Server 2000. Even if you include With encryption in your stored proc, in SQL Server 2000 you will be able to see the execution plan. Since you did not mention this in your article I thought it will work in both. </p>
<p>@mdma</p>
<p>Main Idea behind using with encryption is to hide the SQL Code, not the execution plan. Like Pinal mentioned in his article, many business logics are written in stored procedures which companies do not want others to know. This is the case especially with COTS products. </p>
<p>In SQL Server 2005 SSMS ( Object explorer ), you can see a Lock symbol on stored procedure name indicating this stored procedure is encrypted.</p>
<p>Thanks,<br />
Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdma</title>
		<link>http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/#comment-44014</link>
		<dc:creator><![CDATA[mdma]]></dc:creator>
		<pubDate>Sun, 02 Nov 2008 07:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1451#comment-44014</guid>
		<description><![CDATA[thanks for the info and for keeping your blog interesting for long time.

now what reason do i have to encrypt sp&#039;s or better to say hide an execution plan?]]></description>
		<content:encoded><![CDATA[<p>thanks for the info and for keeping your blog interesting for long time.</p>
<p>now what reason do i have to encrypt sp&#8217;s or better to say hide an execution plan?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
