<?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>Search results matching tags 'Development' and 'error handling'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Development,error+handling&amp;orTags=0</link><description>Search results matching tags 'Development' and 'error handling'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Connect digest : 2009-10-17</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/17/connect-digest-2009-10-17.aspx</link><pubDate>Sat, 17 Oct 2009 18:12:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:17873</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;I've been fairly distracted this past week with my "&lt;a href="http://www.onetooneinteractive.com/otolabs-posts/2009/10/10/helping-people-kick-bad-sql-server-habits/" title="http://www.onetooneinteractive.com/otolabs-posts/2009/10/10/helping-people-kick-bad-sql-server-habits/" target="_blank"&gt;Bad habits to kick&lt;/a&gt;" series, so apologies for being so late with the Connect digest.&amp;nbsp; I stumbled upon a few pretty interesting items from the past two weeks; I hope you find them interesting as well.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498082" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498082" target="_blank"&gt;#498082 : Allow direct usage of scalar functions in RAISERROR()&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It has bugged me that in order to show the original message in, say, a CATCH block, I have to assign ERROR_MESSAGE() to a variable first, since trying to call ERROR_MESSAGE() within RAISERROR() yields an error.&amp;nbsp; I agree with this suggestion that we should be able to reference scalar functions within RAISERROR() (or some function that replaces RAISERROR() in the future).&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498085" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498085" target="_blank"&gt;#498085 : END TRY throws an error if terminated with a semicolon&lt;/a&gt;&lt;/p&gt;&lt;p&gt;A weird inconsistency in TRY / CATCH syntax means that you can place a statement terminator on BEGIN TRY, BEGIN CATCH, and END CATCH; however, if you add a semi-colon to END TRY, you get an error message.&amp;nbsp; I am a &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2009/09/03/ladies-and-gentlemen-start-your-semi-colons.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2009/09/03/ladies-and-gentlemen-start-your-semi-colons.aspx" target="_blank"&gt;big fan of using the semi-colon&lt;/a&gt;, and I knew there was a reason I don't bother doing so on my TRY / CATCH statements.&amp;nbsp; I must have received this error early on and just assumed it wasn't "proper."&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498009" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=498009" target="_blank"&gt;#498009 : Allow filtered unique index to be a candidate key for a foreign key&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Now that we can have a true unique constraint that allows multiple NULL values (since a filtered index can be written such that NULLs are not included), Denny Cherry feels that we should be able to provide a foreign key reference to the values in the filtered index.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=497345" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=497345" target="_blank"&gt;#497345 : SSMS add Query EndTime next to Execution Duration in the Query Window&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;While my comment on this item indicates that there is a relatively easy workaround (just hit F4 and view the Properties pane), I do agree that it could be useful to have items like EndTime in the status bar of a query window.&amp;nbsp; I think the display of these various things around the UI (SSMS status bar, query window status bar, tabs, title bar) should be a lot more flexible. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=496617" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=496617" target="_blank"&gt;#496617 : "Format Document" in SSMS&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Jamie Thomson suggests that Management Studio have a built-in code formatter, along the lines of what we see in Visual Studio.&amp;nbsp; As long as it is flexible enough to format code the way *I* like it, I agree.&amp;nbsp; Yes, there are several 3rd party products that do a decent job of this, however I work on different machines on different days, in different physical locations, and often in several different VMs.&amp;nbsp; Since these tools are licensed per client, it would be pretty expensive for me to license them on every instance of SSMS I use in a typical week.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=496380" title="http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=496380" target="_blank"&gt;#496380 : Enable SQL Developer Edition to target specific SQL version&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Because Developer Edition supports all of the same features of Enterprise Edition, it is very easy to accidentally use a feature during development that you actually won't be able to use when you deploy, since production is some other edition (Standard, Workgroup, Web, Express).&amp;nbsp; It would be really nice to get some kind of error or warning when you use a feature in Developer Edition that is not supported by the edition(s) you are planning to deploy to.&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>