<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.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>Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx</link><description>One of the things I like about SQL Server (and Sybase for that matter) is that it comes with tons of system stored procedures. Who doesn't find procs like sp_who, sp_help, and and sp_helprotect indispenable? But unfortunately it seems to me that Microsoft</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx#13886</link><pubDate>Fri, 08 May 2009 07:49:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13886</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;I absolutely agree. As a consultant, I'm very annoyed by this. I'm at a customer site, and the sp's that comes with the product doesn't reflect the current version of the product. It isn't always practical to install your own version, for instance you probably want to mark it as a system proc, which isn't supported - is the client OK with that? In the end, this all is a huge waste of time.&lt;/p&gt;
&lt;p&gt;The problem here, I must assume is with backwards compatibility. I mean, how much effort is it to include included column in sp_helpindex or separate schema from owner in sp_help?&lt;/p&gt;
&lt;p&gt;I think I have &amp;quot;the solution&amp;quot;:&lt;/p&gt;
&lt;p&gt;Document the system procs, that only return data, as &amp;quot;ad hoc&amp;quot;. Meaning that the inteface can change with next version. I.e., these are only meant to be used ad hoc. As soon as you want to consume the result from code (which is where backwards compatibility comes to play) then use catalog views instead. If you write code, then spending a few minutes to query catalog views doesn't really matter. &lt;/p&gt;
&lt;p&gt;Another alternative would be to never modify the old system proc, but add sp_helpindex105, and then sp_helpindex110. That way, we can remember the name of the proc and keep backward compatibility. But downside is for MS is large number of code to test and support. &lt;/p&gt;
</description></item><item><title>re: Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx#13889</link><pubDate>Fri, 08 May 2009 13:00:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13889</guid><dc:creator>Linchi Shea</dc:creator><description>&lt;p&gt;Tibor;&lt;/p&gt;
&lt;p&gt;I'd be happy with either approach. &lt;/p&gt;
&lt;p&gt;Another compromise perhaps is to add new info to a new resultset only. Since many of these system stored procedures return multiple resultsets already, adding another resultset to a proc should lessen the burden of updating the code that consumes the proc. For ad hoc use, it may not be perfect to have info that should be right next to each other scattered in the output. But as long as, for instance, sp_helpdb gives me all the info about that database (including database mirroring etc), it is still much better than leaving people wondering what may be missing.&lt;/p&gt;
</description></item><item><title>re: Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx#13890</link><pubDate>Fri, 08 May 2009 13:18:44 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13890</guid><dc:creator>noeldr</dc:creator><description>&lt;p&gt;This, in fact, is very annoying and inconsistent on their part. &lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;RESTORE FILELISTONLY and RESTORE HEADERONLY have been following the &amp;quot;upgrade&amp;quot; trend by adding columns to the previously existing results. (2000-2005-2008)&lt;/p&gt;
&lt;p&gt;Why not do that consistently?&lt;/p&gt;
</description></item><item><title>re: Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx#13892</link><pubDate>Fri, 08 May 2009 13:40:15 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13892</guid><dc:creator>Linchi Shea</dc:creator><description>&lt;p&gt;RESTORE FILELISTONLY and RESTORE HEADERONLY are considered as T-SQL language proper, and as such they must be kept up to date with the version. I guess sp_helpdb and the like are considered utilities, and perhaps not quite up there in the pecking order.&lt;/p&gt;
</description></item><item><title>re: Please keep the system stored procedures updated</title><link>http://sqlblog.com/blogs/linchi_shea/archive/2009/05/07/please-keep-the-system-stored-procedures-updated.aspx#13903</link><pubDate>Fri, 08 May 2009 18:55:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13903</guid><dc:creator>Ranga Narasimhan</dc:creator><description>&lt;p&gt;Good point Linchi.&lt;/p&gt;
&lt;p&gt;As a side note, sp_helpindex displays disabled indexes. MS should add a new column to show if a index is enabled or disabled.&lt;/p&gt;
</description></item></channel></rss>