<?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 'performance monitoring' and 'Connect'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=performance+monitoring,Connect&amp;orTags=0</link><description>Search results matching tags 'performance monitoring' and 'Connect'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SSMS : Which parts do you love? Which parts do you hate?</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/06/22/ssms-which-parts-do-you-love-which-parts-fo-you-hate.aspx</link><pubDate>Wed, 23 Jun 2010 00:56:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:26377</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;I find myself categorizing a subset of SSMS features ranging from "must have" features to "cringe when they are mentioned."&amp;nbsp; I'll try to summarize the standouts for you here, then ask you these questions: Which parts of SSMS do you rely on? Which do you wish were not there at all?&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;The "I almost always use it to get the task done." variety&lt;/b&gt;&lt;br&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;SQL Server Agent's Job / Job Step Editor.&amp;nbsp; While not pretty, the wizard does make quick work of creating jobs with several steps, multiple schedules, and various execution paths.&amp;nbsp; (Let's just pretend the 2008 R2 version isn't a no-op &lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/557402/ssms-can-no-longer-create-or-edit-job-steps" title="https://connect.microsoft.com/SQLServer/feedback/details/557402/ssms-can-no-longer-create-or-edit-job-steps" target="_blank"&gt;due to a debilitating bug&lt;/a&gt;.)&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Profiler.&amp;nbsp; Similar to the job procedures, I am unlikely to ever get the hang of scripting a server-side trace from memory.&amp;nbsp; So, I use the profiler UI to set up the trace details, then save the script for future use.&amp;nbsp; If I have to run a slightly different server-side trace, I can use the same script with minimal changes; but in many cases it is just as quick to use the UI again and start from scratch.&amp;nbsp; (Technically, I guess this isn't part of SSMS, but it is certainly a management UI that has had its share of criticism over the years.)&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Right-click object &amp;gt; Modify, or Script as ALTER to New Window.&amp;nbsp; This is by far the quickest way for me to get at the *current* version that is deployed, and when I am done testing my revisions against the dev server, I can then move the changes to source control.&amp;nbsp; I see a lot of people using sp_helptext or manually selecting from syscomments / sys.sql_modules / OBJECT_DEFINITION(), but this can involve several more steps to get the code into suitable (and more importantly, maintainable) shape.&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Registered servers.&amp;nbsp; These are a god-send, especially since I've learned to export carefully constructed nodes and share them across all machines.&amp;nbsp; I wish the tool in general was more consistent at remembering passwords depending on how I've initiated or switch a connection, but that's another story I suppose.&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;b&gt;The "I will use it if I have to, but usually feel icky and prefer better alternatives." variety&lt;/b&gt;&lt;br&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Table Designer - occasionally I will use this tool (right-click a table, Design), but only at the beginning of projects, where I want to slightly adjust the column order in a new table.&amp;nbsp; Even in that case, more often than not, I'll drop and re-create the table.&amp;nbsp; For tables already in use, I always use DDL commands like ALTER TABLE, knowing that any new columns end up at the end of the table.&amp;nbsp; And that's okay with me.&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/li&gt;&lt;li&gt;SQL Server Agent &amp;gt; Job History.&amp;nbsp; This dialog has some real quirkiness; in our environment, it is always confused because it is being run on a desktop in one time zone against servers in another.&amp;nbsp; I have been complaining about this since before SQL Server 2005 was released (though first officially documented in 2006; see &lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/124841/very-odd-duration-listed-in-log-file-viewer" title="https://connect.microsoft.com/SQLServer/feedback/details/124841/very-odd-duration-listed-in-log-file-viewer" target="_blank"&gt;Connect #124841&lt;/a&gt;).&amp;nbsp; I also find the interface cumbersome to use and drill down - usually I get more complete and consumable information, and more immediately, from &lt;a href="http://www.sqlsentry.net/event-manager/sql-server-enterprise-overview.asp" title="http://www.sqlsentry.net/event-manager/sql-server-enterprise-overview.asp" target="_blank"&gt;SQL Sentry's Event Manager&lt;/a&gt; - which also has the ability to store more history in the repository without bogging down production instances of msdb.&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Select Top N Rows.&amp;nbsp; This is a quick way to grab an arbitrary 1000 rows (or whatever number you customize) from a table.&amp;nbsp; Sadly, it just blindly executes the query without giving you the opportunity to modify the column list, where clause or isolation level (personally, I prefer Script &amp;gt; As SELECT To &amp;gt; New Query Editor Window).&amp;nbsp; Oh, and it won't necessarily put you in the context of the right database; instead, it uses a three-part name for the table, which can be frustrating if you try to add a simple join or subquery and forget which database you're really in.&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;The "I will not touch it with a 10-foot pole"! variety:&lt;/b&gt;&lt;ul&gt;&lt;li&gt;Activity Monitor.&amp;nbsp; While this replacement of the useless view of the same name in previous iterations of the tool shows a lot of potential, and its 
motivation is in the right spot, it is in its infancy and has a lot of quirky behaviors.&amp;nbsp; If I want a good
 look at what is going on in my server, I will use &lt;a href="http://www.sqlsentry.net/performance-advisor/sql-server-performance-overview.asp" title="http://www.sqlsentry.net/performance-advisor/sql-server-performance-overview.asp" target="_blank"&gt;SQL
 Sentry's Performance Advisor&lt;/a&gt; - which does a great job of warning me about issues even when I'm not paying attention.&amp;nbsp; For a really quick pulse of current 
activity or in environments where I haven't convinced them to use 
Performance Advisor, then I turn to Adam Machanic's &lt;a href="http://sqlblog.com/files/folders/beta/entry26196.aspx" title="http://sqlblog.com/files/folders/beta/entry26196.aspx" target="_blank"&gt;sp_whoIsActive&lt;/a&gt;.&amp;nbsp; For a really quick look, yes, Activity Monitor can be useful... but for very little incremental effort you can get to a lot more information without memorizing all of the DMVs.&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;This will be ridiculously shocking, but any of the features that allow you to shrink a database or a file.&amp;nbsp; I acknowledge that there are some cases where shrinking a file is necessary, and I don't want to get into a religious battle about it.&amp;nbsp; I just wish that the task was much more difficult and thought-provoking to complete.&amp;nbsp; Rather than one button or checkbox, imagine if the process to shrink a file were as convoluted as setting up SQL Server?&amp;nbsp; There is one case where I'd applaud a longer and more cumbersome set of steps to accomplish a simple task.&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Most other designers / wizards.&amp;nbsp; Including, but not limited to:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;ol&gt;&lt;li&gt;View Designer&lt;/li&gt;&lt;li&gt;Query Designer&lt;/li&gt;&lt;li&gt;Edit Top N Rows (formerly &lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/264592/ssms-deprecate-open-table" title="https://connect.microsoft.com/SQLServer/feedback/details/264592/ssms-deprecate-open-table" target="_blank"&gt;Open Table&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;New/Edit Database&lt;/li&gt;&lt;li&gt;New/Edit Login&lt;br&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Go ahead, search Connect.&amp;nbsp; There are dozens of bugs against these dialogs, and few if any will ever be fixed.&amp;nbsp; I can quote myself on twitter from earlier tonight: "Never send a UI to do a DDL's job."&amp;nbsp; As I've explained above, this isn't always true; but in most cases the DDL is going to be more predictable and also infinitely more repeatable.&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;The "Wait, why isn't that feature there?" variety&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I'm cheating here a little bit, but there are some noticeable omissions from Management Studio that I can't even complain about because they never bothered to create them.&amp;nbsp; UIs to support features that are cumbersome to set up using code alone, such as Service Broker and Extended Events (they are gradually getting to others such as Mirroring and of course the new DACPAC stuff).&amp;nbsp; Or things that are long overdue but are otherwise covered by great 3rd party add-ins, like Mladen Prajdic's &lt;a href="http://www.ssmstoolspack.com/" title="http://www.ssmstoolspack.com/" target="_blank"&gt;SSMS Tools Pack&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;b&gt;The "Oh yeah, I didn't even think of that one!" variety&lt;br&gt;&lt;/b&gt;&lt;br&gt;It is a pretty vast application and there are probably several features I didn't even think to mention.&amp;nbsp; So again, I'll ask: which parts of SSMS can you not live without?&amp;nbsp; Which ones would you throw off a pier if you were in control?&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>