<?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 'SQL Server 11', 'SSMS', and 'denali'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+11,SSMS,denali&amp;orTags=0</link><description>Search results matching tags 'SQL Server 11', 'SSMS', and 'denali'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQL Server v.Next (Denali) : More on contained databases and &amp;quot;contained users&amp;quot;</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/12/10/sql-server-v-next-denali-more-on-contained-databases-and-contained-users.aspx</link><pubDate>Fri, 10 Dec 2010 12:34:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:31497</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;One of the reasons for contained databases (see &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/16/sql-server-v-next-denali-contained-databases.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/16/sql-server-v-next-denali-contained-databases.aspx" target="_blank"&gt;my previous post&lt;/a&gt;) is to allow for a more seamless transition when moving a database from one server to another.&amp;nbsp; One of the biggest complications in doing so is making sure that all of the logins are in place on the new server.&amp;nbsp; Contained databases help solve this issue by creating a new type of user: a database-level user with a password.&amp;nbsp; I want to stress that this is not the same concept as a &lt;a href="http://blogs.msdn.com/raulga/archive/2006/07/03/655587.aspx" title="http://blogs.msdn.com/raulga/archive/2006/07/03/655587.aspx" target="_blank"&gt;user without a login&lt;/a&gt;, which serves a completely different purpose altogether.&amp;nbsp; To avoid confusion, I'm going to call these database-level users "contained users." &lt;br&gt;&lt;/p&gt;

&lt;p&gt;To create a contained user, you must be in the context of a contained database.&amp;nbsp; So let's create a couple of contained databases:&lt;/p&gt;


&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="blue"&gt;CREATE DATABASE &lt;font color="black"&gt;CDB1&lt;font color="gray"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;CREATE DATABASE &lt;font color="black"&gt;CDB2&lt;font color="gray"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;ALTER DATABASE &lt;font color="black"&gt;CDB1&lt;/font&gt; SET CONTAINMENT &lt;font color="gray"&gt;=&lt;/font&gt; PARTIAL&lt;font color="gray"&gt;;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;ALTER DATABASE &lt;font color="black"&gt;CDB2&lt;/font&gt; SET CONTAINMENT &lt;font color="gray"&gt;=&lt;/font&gt; PARTIAL&lt;font color="gray"&gt;;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;


&lt;p&gt;So with those databases in place, we can create a contained user named Bob in each of these databases.&amp;nbsp; We'll make the passwords the same just to keep things simple.&lt;br&gt;&lt;/p&gt;


&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="blue"&gt;USE &lt;font color="black"&gt;CDB1&lt;font color="gray"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;CREATE USER &lt;font color="black"&gt;Bob&lt;/font&gt; WITH PASSWORD &lt;font color="gray"&gt;= &lt;font color="red"&gt;'bar'&lt;/font&gt;;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;USE &lt;font color="black"&gt;CDB2&lt;/font&gt;&lt;font color="gray"&gt;;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;CREATE USER &lt;font color="black"&gt;Bob&lt;/font&gt; WITH PASSWORD &lt;font color="gray"&gt;= &lt;font color="red"&gt;'bar'&lt;/font&gt;;&lt;/font&gt;&lt;br&gt;GO&lt;br&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now when you try to connect to this server using Management Studio, you might be tempted to just type the user name and password and click Connect.&amp;nbsp; This won't work, because the user Bob is not a SQL login and does not have a default database, so SQL Authentication fails:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31488/download.aspx" height="465" width="432"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Since no database is provided, SQL Server isn't able to check if there is a contained user - the engine is not going to go through the hassle of checking every single database and letting you into the first one that works.&amp;nbsp; However, if you click the Options &amp;gt;&amp;gt; button, on the Connection Properties tab there is a "Connect to database:" option.&amp;nbsp; But when you try to specify the database, the drop-down only offers &amp;lt;default&amp;gt; (which we've already established won't work), and &amp;lt;Browse server...&amp;gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31493/download.aspx" height="500" width="426"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you choose the &amp;lt;Browse server...&amp;gt; option, it brings up this prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31494/download.aspx" height="500" width="581"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But if you say Yes, the connection immediately fails with the same "Login failed" error as above, because the contained user does not have access to the list of databases on the server.&amp;nbsp; &lt;/p&gt;

&lt;p&gt;This is by design.&amp;nbsp; And there is a fix for all of this, if you go back to the Connection Properties tab.&amp;nbsp; While the "Connect to database:" option appears to be a dropdown, it is actually a combo box, so you can type the name of your database, and this will allow you to connect.&amp;nbsp; You should create a registered server with these options so that you only have to perform this action once.&lt;br&gt;&lt;/p&gt;

&lt;p&gt;Once you're connected, you'll notice some slightly different behavior in Management Studio.&amp;nbsp; The Object Explorer list is quite sparse - as a contained database user, you don't have access to any of the other databases on the system (except for master and tempdb), or to server-level entities such as SQL Server Agent and the Security and Management nodes:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31496/download.aspx" height="312" width="386"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You'll also notice in a query window that the Use database dropdown list contains only the three databases you see above: the contained database you connected to, as well as master and tempdb. You don't get visibility into the other database you are also "contained" within, even though the username and password match (the sids do not, if you care to inspect the sys.database_principals view in each database).&amp;nbsp; In order to connect to that database, you need to change your current connection to target that database instead (you can do this by right-clicking within the query window and selecting Connection &amp;gt; Change Connection, and following the steps as above).&lt;/p&gt;


&lt;p&gt;For fun I tried to see what would happen if I tried to USE the other database: &lt;br&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="blue"&gt;USE &lt;font color="black"&gt;CDB2&lt;font color="gray"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;


&lt;p&gt;The result:&lt;/p&gt;


&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="red"&gt;Msg 916, Level 14, State 1, Line 1&lt;br&gt;The server principal "S-1-9-3-3958803033-1179633189-3577740975-3121738123." is not able to access the database "CDB2" under the current security context.&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;

&lt;p&gt;[For what it's worth, I think this error message is wrong.&amp;nbsp;
 It should say "database principal" and it should show the name of the current user, instead 
of that horribly cryptic identifier.&amp;nbsp; Not that I can't figure out who I'm logged in as, or that it would help me figure out the problem quicker; I just think it could be tidier.]&lt;/p&gt;

&lt;p&gt;The same error message occurs if I try to perform a join between the two databases, or try to access a synonym that underneath accesses a 3-part name referencing the other database.&amp;nbsp; This is more or less what I expected, because the user is truly contained to this database, even though there happens to be a user with the same name and password in another database.&amp;nbsp; However, I hope this functionality is enhanced in the future... I believe that it would fit nicely with availability groups if I can fail over multiple databases as a unit, and also bring over contained users that can access any of the databases within the availability group.&amp;nbsp; This seems to be a more real-world scenario than a user that can only interact with and within a single database.&lt;br&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>SQL Server v.Next (Denali) : Another SSMS bug that should be fixed</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/12/01/another-ssms-bug-that-should-be-fixed.aspx</link><pubDate>Wed, 01 Dec 2010 18:41:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:31271</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;Sorry to call this out in a separate post (I &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/29/sql-server-v-next-denali-some-management-studio-bugs-you-should-vote-for.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/29/sql-server-v-next-denali-some-management-studio-bugs-you-should-vote-for.aspx" target="_blank"&gt;talked about a bunch of SSMS Connect items&lt;/a&gt; the other day), but Aaron Nelson (&lt;a href="http://sqlvariant.com/wordpress/" title="http://sqlvariant.com/wordpress/" target="_blank"&gt;blog&lt;/a&gt; | &lt;a href="http://twitter.com/SQLVariant" title="http://twitter.com/SQLVariant" target="_blank"&gt;twitter&lt;/a&gt;) jogged my memory today about an issue that has gone unfixed for years: the custom coloring for Registered Servers is neither consistent nor global.&lt;/p&gt;&lt;p&gt;For one of my servers, I've chosen a red color to show in the status bar.&amp;nbsp; Let's pretend this is a production server, and I want the red to remind me to use caution.&amp;nbsp; I can set this up by right-clicking a Registered Server, choosing Properties, and moving to the Connection Properties tab:&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31269/download.aspx" width="418" height="523"&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Once I save, a new query window - when launched by right-clicking the Registered Server and choosing New Query - looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;img src="http://sqlblog.com/files/folders/31270/download.aspx" width="669" height="187"&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This is a great feature, if only it worked all the time.&amp;nbsp; &lt;/p&gt;&lt;p&gt;For example, if I right-click within the above query window and choose Connection &amp;gt; Change Connection, and switch to a server that doesn't use a custom color (or uses a different color), the status bar stays red.&amp;nbsp; More importantly, if I'm in a query editor for a connection without a custom color, and I switch the connection to my production server, the color does not change to red.&lt;/p&gt;&lt;p&gt;Similarly, if I open a new instance of SSMS and click on New Query (or am prompted because my Startup option includes new query window), the status bar remains the default yellowish color, not red.&lt;br&gt;&lt;/p&gt;&lt;p&gt;These gaps in functionality defeat the purpose of the visual cue, and I am hoping that a fix can be addressed in the Denali timeframe.&amp;nbsp; I wanted to call this one out separately because it can lead to pretty serious errors.&lt;/p&gt;&lt;p&gt;There are two Connect items about this issue; one has been closed as "Won't Fix" and the other (which came earlier!) has yet to see a response from Microsoft.&amp;nbsp; I'm hoping that with enough steam we can change that: please vote and comment!&lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/533667/ssms-connection-colouring-not-implemented-sensibly" title="http://connect.microsoft.com/SQLServer/feedback/details/533667/ssms-connection-colouring-not-implemented-sensibly" target="_blank"&gt;Connect #533667 : SSMS Connection Colouring Not Implemented Sensibly&lt;/a&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/504418/ssms-make-color-coding-of-query-windows-work-all-the-time" title="http://connect.microsoft.com/SQLServer/feedback/details/504418/ssms-make-color-coding-of-query-windows-work-all-the-time" target="_blank"&gt;Connect #504418 : [SSMS] Make color coding of query windows work all the time&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;There are workarounds, of course: always use Registered Servers to launch your query windows, use &lt;a href="http://ssmstoolspack.com/" title="http://ssmstoolspack.com/" target="_blank"&gt;Mladen's free SSMS Tools Pack&lt;/a&gt;, be a lot more careful, etc. etc.&amp;nbsp; But personally I feel that such a useful built-in feature should be rectified to function reliably. &lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;</description></item><item><title>SQL Server v.Next (Denali) : Some Management Studio bugs you should vote for</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/29/sql-server-v-next-denali-some-management-studio-bugs-you-should-vote-for.aspx</link><pubDate>Mon, 29 Nov 2010 18:14:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:31091</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;It's been a while since I hosted a true Connect &lt;strike&gt;pity party&lt;/strike&gt; digest, trying to pimp your votes for the issues I think are worthwhile.&amp;nbsp; And okay, some of these bugs haven't been filed in the Denali time frame - but those are still in Denali's version of SSMS.&amp;nbsp; And since we are not expecting a release for a year, and the next CTP won't be here until early 2011 sometime, what better time to build some momentum and hopefully sneak some of these fixes in?&amp;nbsp; It won't happen without votes, so please check out any that you can appreciate. &lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="5"&gt;The "Change Connection" dialog&lt;/font&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/542304" title="http://connect.microsoft.com/SQLServer/feedback/details/542304" target="_blank"&gt;#542304 : Change Connection should order instance names in a better way&lt;/a&gt;&lt;br&gt;It would be great if we could customize this, but I'll take at least a defined and predictable sort order, regardless of what they choose.&amp;nbsp; Alphabetical seems to make the most sense to me, though others (such as &lt;a href="http://twitter.com/AdamMachanic" title="http://twitter.com/AdamMachanic" target="_blank"&gt;@AdamMachanic&lt;/a&gt;) might argue that most recently connected would be more logical.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/424800" title="http://connect.microsoft.com/SQLServer/feedback/details/424800" target="_blank"&gt;#424800 : SSMS : Expose "Connect to Server" MRU list to users&lt;/a&gt;&lt;br&gt;The most important problem here is that you can have duplicates in the list - one for Windows Authentication, and potentially one for each SQL Authentication login you've used.&amp;nbsp; So when you pull from the list again, it is trial and error to pick the right server + credential combination - like Forrest Gump not knowing which chocolate he's going to get.&amp;nbsp; What I've requested here is a way to see and prune this list (and by extension, possibly even re-order it, addressing Adam's point above).&amp;nbsp; Don't be fooled by the bug's current status - it says "Closed as Fixed," but the last Microsoft comment (from November 18) clearly states: "We will be [sic] try to fix this bug in next major release..." - which doesn't sound too fixed to me just yet.&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/621507" title="http://connect.microsoft.com/SQLServer/feedback/details/621507" target="_blank"&gt;#621507 : [Denali SSMS] : Prompt about previously registered servers is too sticky&lt;/a&gt;&lt;br&gt;While not completely related to the Change Connection dialog, this prompt comes back for me every time I try to change a connection by right-clicking within a query window.&amp;nbsp; It also keeps coming back every time I launch SSMS, no matter how many times I check the "Do not show this message again" checkbox.&amp;nbsp; For other users (e.g. &lt;a href="http://twitter.com/SQLSoldier" title="http://twitter.com/SQLSoldier" target="_blank"&gt;@SQLSoldier&lt;/a&gt;), they can't get this prompt to show up at all. &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;font size="5"&gt;Keyboard shortcuts&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;In the move to the VS shell, we have lost a LOT of keyboard functionality that we were used to in prior iterations of SSMS, and gained a few undesirable behaviors as well. &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/616721" title="http://connect.microsoft.com/SQLServer/feedback/details/616721" target="_blank"&gt;#616721 : SSMS Short Cut key "CTRL + E" is not working to execute any query&lt;/a&gt; &lt;br&gt;Along with Ctrl + N, this functionality is missed by many users.&amp;nbsp; Thankfully, it seems this bug will be fixed for the next CTP.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/614413" title="http://connect.microsoft.com/SQLServer/feedback/details/614413" target="_blank"&gt;#614413 : [Denali SSMS] CTRL+U keybaord shortcut no longer works&lt;/a&gt;&lt;br&gt;Ctrl + U stopped working because of the next item: the keyboard shortcut for lower case (Ctrl + Shift + L) was reassigned.&amp;nbsp; Jamie probably didn't notice the new functionality of Ctrl + U because he didn't have any text selected at the time (or it was already lower case).&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/625257" title="http://connect.microsoft.com/SQLServer/feedback/details/625257" target="_blank"&gt;#625257 : [Denali SSMS] : Ctrl + Shift + L no longer issues lower case&lt;/a&gt;&lt;br&gt;As described above - this keyboard shortcut was inexplicably changed to a very unintuitive key combination.&amp;nbsp; Yet Ctrl + Shift + U still handles upper case. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623863" title="http://connect.microsoft.com/SQLServer/feedback/details/623863" target="_blank"&gt;#623863 : [Denali SSMS] : Ctrl + Shift + M no longer raises template parameter dialog&lt;/a&gt;&lt;br&gt;This keystroke omission practically destroys the functionality of templates.&lt;br&gt;
&lt;/p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/625260" title="http://connect.microsoft.com/SQLServer/feedback/details/625260" target="_blank"&gt;#625260 : [Denali SSMS] : F5 in Object Explorer no longer refreshes; triggers debug instead&lt;/a&gt;&lt;br&gt;"Start debugging" is supposed to be triggered by Alt + F5, not F5 on its own.&amp;nbsp; And I shouldn't be able to start debugging when I am focused in Object Explorer anyway.&lt;br&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623498" title="http://connect.microsoft.com/SQLServer/feedback/details/623498" target="_blank"&gt;#623498 : Error when pressing the F1 key in SSMS&lt;/a&gt;&lt;br&gt;In older versions of SSMS, pressing F1 without focus on a relevant object would just be a no-op; now it yields a pretty badly-handled error.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;font size="5"&gt;Just plain old inconsistency, or promoting bad practices&lt;/font&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623865" title="http://connect.microsoft.com/SQLServer/feedback/details/623865" target="_blank"&gt;#623865 : [Denali SSMS] : Inconsistency : Non-Clustered vs. Nonclustered&lt;/a&gt;&lt;br&gt;This is just a simple inconsistency that should be easy to correct, but they're already making excuses about why they can't correct it in the next 12 months.&lt;br&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623864" title="http://connect.microsoft.com/SQLServer/feedback/details/623864" target="_blank"&gt;#623864 : [Denali SSMS] : Inconsistency : Is it Template Explorer or Template Browser?&lt;/a&gt;&lt;br&gt;Another simple inconsistency that should be easy to fix.&amp;nbsp; I think it's just a case of the left hand not knowing what the right hand is doing.&lt;br&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/622784" title="http://connect.microsoft.com/SQLServer/feedback/details/622784" target="_blank"&gt;#622784 : [Denali SSMS] : Proliferation of the use of deprecated system tables (e.g. sysobjects)&lt;/a&gt;&lt;br&gt;There should be a standard way to prevent the dev team from implementing code that uses deprecated objects.&amp;nbsp; It's kind of embarrassing when we spread the word that you should stop using sysobjects in your scripts, and then Microsoft goes along and keeps using it...&lt;br&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623047" title="http://connect.microsoft.com/SQLServer/feedback/details/623047" target="_blank"&gt;#623047 : Incorrect SET options for New Service Broker Application&lt;/a&gt;&lt;br&gt;As above, they need to follow better standards and be on the same page as far as scripting conventions and defaults.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623049" title="http://connect.microsoft.com/SQLServer/feedback/details/623049" target="_blank"&gt;#623049 : master misspelled in new Service Broker tasks&lt;/a&gt;&lt;br&gt;All code that gets called within or generated by Management Studio and other shipped components should be tested on a case sensitive collation.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;font size="5"&gt;Poor behavior&lt;/font&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/625266" title="http://connect.microsoft.com/SQLServer/feedback/details/625266" target="_blank"&gt;#625266 : Denali SSMS Incorrectly Reports session_id for connected tabs&lt;/a&gt;&lt;br&gt;Pretty scary that SSMS can get into a confused state and not know which SPID is which.&amp;nbsp; I believe the symptom is related to SSMS losing connectivity with the server, whether it be because of a network blip of some kind or because the service restarted or failed over.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/615766" title="http://connect.microsoft.com/SQLServer/feedback/details/615766" target="_blank"&gt;#615766 : [Denali SSMS] : Execution plan tooltip causes very slow behavior&lt;/a&gt;&lt;br&gt;I see this bug constantly - I swear every time I accidentally hover over the query portion of an execution plan.&amp;nbsp; I have showed one of the program managers - in person - how to reproduce this bug, so I expect that it will get corrected (preferably just by eliminating the useless tooltip altogether).&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/623735" title="http://connect.microsoft.com/SQLServer/feedback/details/623735" target="_blank"&gt;#623735 : Denali CTP1 SSMS Error Message Click doesn't return to error line&lt;/a&gt;&lt;br&gt;This is a behavior that is sorely missed.&amp;nbsp; It is currently non-functional because of the transition to the Errors List that Visual Studio developers know and love (I talked about this a bit at the bottom of an earlier &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" target="_blank"&gt;blog post about "the new SSMS"&lt;/a&gt;).&amp;nbsp; I hope there is middle ground here somewhere.&lt;br&gt;&lt;br&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/425661" title="http://connect.microsoft.com/SQLServer/feedback/details/425661" target="_blank"&gt;#425661 : SSMS : unable to register local servers&lt;/a&gt;&lt;br&gt;This bug has been around for a long time, but Microsoft continuously insists that it can't reproduce.&amp;nbsp; If you have any further evidence of this problem, please comment / vote / validate!&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;font size="5"&gt;Toolbar customization&lt;/font&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/615154" title="http://connect.microsoft.com/SQLServer/feedback/details/615154" target="_blank"&gt;#615154 : [Denali SSMS] : Can no longer drag buttons within or off the toolbar&lt;/a&gt;&lt;br&gt;While most of the T-SQL developers out there are clamoring for better debugging support in Management Studio, I am still "old school" and want nothing else but to remove the Debug icon from the toolbar.&amp;nbsp; I've found that customizing the toolbar has become a lot more cumbersome in Denali.&lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;font size="5"&gt;Debugging&lt;/font&gt;&lt;blockquote&gt;&lt;p&gt;I mentioned four Connect items about debugging in a post a few days ago.&amp;nbsp; Rather than repeat them here, I'll just point you at &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/24/debugging-t-sql-in-sql-server-v-next-denali-you-can-make-a-difference.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/24/debugging-t-sql-in-sql-server-v-next-denali-you-can-make-a-difference.aspx" target="_blank"&gt;that blog post&lt;/a&gt;. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Debugging T-SQL in SQL Server v.Next (Denali) : You can make a difference!</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/24/debugging-t-sql-in-sql-server-v-next-denali-you-can-make-a-difference.aspx</link><pubDate>Wed, 24 Nov 2010 19:23:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:31009</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;This afternoon, Adam Machanic (&lt;a href="http://sqlblog.com/blogs/adam_machanic/" title="http://sqlblog.com/blogs/adam_machanic/" target="_blank"&gt;blog&lt;/a&gt; | &lt;a href="http://twitter.com/AdamMachanic" title="http://twitter.com/AdamMachanic" target="_blank"&gt;twitter&lt;/a&gt;) reminded me how the current T-SQL debugger in Management Studio is ineffective.&amp;nbsp; Sure, there are some enhancements coming in Denali (I &lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" title="http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/23/sql-server-11-denali-the-new-vs-shell.aspx" target="_blank"&gt;mentioned them briefly yesterday&lt;/a&gt;), but there are some real key elements missing.&amp;nbsp; One of the most glaring omissions is the ability to see the contents of #temp tables and @table variables during a debugging session.&amp;nbsp; For stored procedures that can take a long time to run, it is quite cumbersome to edit the procedure to dump the contents of the #temp table as a resultset, which can obviously interfere with the operation of the procedure (especially if applications currently rely on its interface).&amp;nbsp; As Adam eloquently stated, "All I want right now is a debugger that helps with real challenges. Scalar variables are not enough."&lt;/p&gt;&lt;p&gt;Hear, hear.&amp;nbsp; This is one of the reasons I have yet to step back from my curmudgeony debugging methods: PRINT, RAISERROR, and (since 2005) TRY/CATCH.&amp;nbsp; I don't come from an OOP background, but I do understand why many people value a more formal method of debugging.&lt;/p&gt;&lt;p&gt;So, how can you help?&amp;nbsp; Well, I know some of you do not believe in Connect, but for those that do - this issue of not being able to see into #temp tables and @table variables is covered by no fewer than four Connect items.&amp;nbsp; I am asking that you go and vote for all four of them, because Connect doesn't have a good way for us peons to close duplicates and focus on a single item.&amp;nbsp; (I'd love to pick just one and tell you to vote there, but with my luck, Microsoft will choose a different one to keep alive, if they ever get around to consolidating.)&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/details/623353" title="http://connect.microsoft.com/SQL/feedback/details/623353" target="_blank"&gt;Connect #623353 : View contents of table variables and temp tables in SSMS debugger&lt;/a&gt; &lt;br&gt;&lt;/p&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/details/582167" title="http://connect.microsoft.com/SQL/feedback/details/582167" target="_blank"&gt;Connect #582167 : Debugger should hyperlink into CTE-s, table variables, temp tables and changed rows&lt;/a&gt;&lt;br&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/details/454870" title="http://connect.microsoft.com/SQL/feedback/details/454870" target="_blank"&gt;Connect #454870 : No way to see contents of table valued variable in debugger&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://connect.microsoft.com/SQL/feedback/details/363054" title="http://connect.microsoft.com/SQL/feedback/details/363054" target="_blank"&gt;Connect #363054 : temp table and table variable visibility through debug&lt;/a&gt; &lt;br&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;So please, if you value debugging and you want to see better improvements than just being able to watch scalar variables, vote on these items.&amp;nbsp; And if someone tells you they're going to create a new Connect item in a similar vein, please tell them to search first.&amp;nbsp; Having multiple items covering the same issue just spreads out the votes and makes it less likely that the issue will be tackled.&amp;nbsp; Thanks! &lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>