<?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>A long (but not missed) friend revisited, prefixing stored procedures with SP_</title><link>http://blogs.msdn.com/jenss/archive/2009/04/28/a-long-but-not-missed-friend-revisited-prefixing-stored-procedures-with-sp.aspx</link><description>Coming as a simple sample with PBM (creating a policy with a condition that procedure names shouldn't´t start with SP_) and getting an interesting question in one of my classes, I wanted to revisit the question about the yet in some places existing naming</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Anith &amp;raquo; A long (but not missed) friend revisited, prefixing stored procedures with SP_</title><link>http://blogs.msdn.com/jenss/archive/2009/04/28/a-long-but-not-missed-friend-revisited-prefixing-stored-procedures-with-sp.aspx#9573157</link><pubDate>Tue, 28 Apr 2009 10:33:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9573157</guid><dc:creator>Anith &amp;raquo; A long (but not missed) friend revisited, prefixing stored procedures with SP_</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.anith.com/?p=33032"&gt;http://www.anith.com/?p=33032&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: A long (but not missed) friend revisited, prefixing stored procedures with SP_</title><link>http://blogs.msdn.com/jenss/archive/2009/04/28/a-long-but-not-missed-friend-revisited-prefixing-stored-procedures-with-sp.aspx#9727773</link><pubDate>Thu, 11 Jun 2009 23:51:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727773</guid><dc:creator>Andrew Zhu</dc:creator><description>&lt;p&gt;This is not the case for SQL 2005 or SQL 2008.&lt;/p&gt;
&lt;p&gt;When procedure metadata is looked from catalog, if it is in dbo schema and name begins with sp_, we check if there is system procedures with same name and cache this fact.&lt;/p&gt;
&lt;p&gt;Later, we simply look up current database first, using this fact to avoid looking up system procedures.&lt;/p&gt;
&lt;p&gt;There should not be cache misss simply due to sp_ prefix naming, as this article describes.&lt;/p&gt;
&lt;p&gt;End users are not encouraged to use the sp_ prefix, unless the name will not likely be used by system procedures shipped with SQL Server in the future.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Andrew Zhu&lt;/p&gt;
&lt;p&gt;[MSFT]&lt;/p&gt;</description></item></channel></rss>