<?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>SSIS Junkie : sql server management studio, sql server</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+management+studio/sql+server/default.aspx</link><description>Tags: sql server management studio, sql server</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Query window custom colouring now works properly [SSMS]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2011/08/11/query-window-custom-colouring-now-works-properly-ssms.aspx</link><pubDate>Thu, 11 Aug 2011 19:28:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:37770</guid><dc:creator>jamiet</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/jamie_thomson/comments/37770.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jamie_thomson/commentrss.aspx?PostID=37770</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jamie_thomson/rsscomments.aspx?PostID=37770</wfw:comment><description>&lt;p&gt;SQL Server 2008 introduced a new feature that had the potential to be very useful, the ability to &lt;strike&gt;color&lt;/strike&gt; colour-code a query window in SSMS to represent the server that was being connected to. This was configured using the properties of a server in the Registered Servers pane:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_5F6E1076.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_76B914E7.png" style="background-image:none;border:0px none;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" width="344" border="0" height="433"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Unfortunately this feature was made less than useful, dangerous even, by its behaviour. Changing the connection of a query window did not affect the colour thus raising the prospect of a user issuing queries against what they believe is a development server which in actuality is a production server. I haven’t met anyone since that hasn’t denounced this “feature” of SSMS.&lt;/p&gt;  &lt;p&gt;Good news though. According to these Connect submissions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://connect.microsoft.com/SQLServer/feedback/details/504418/ssms-make-color-coding-of-query-windows-work-all-the-time" target="_blank"&gt;[SSMS] Make color coding of query windows work all the time&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/361832/update-status-bar-colour-when-changing-connections" target="_blank"&gt;Update status bar colour when changing connections&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;this issue was fixed in SQL Server 2008 R2 Service Pack 1 and the fix will also appear in SQL Server Denali RTM (its not in any of the currently available CTPs). From Program Manager Sanjay Nagamangalam:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;i&gt;This bug and a related connect bug have been fixed in SSMS in SQL Server 2008 R2 SP1. Unfortunately, the fix did not make it in time for SSMS in Denali CTP3 and will be available in a subsequent release. &lt;/i&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Good news indeed!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet"&gt;@jamiet&lt;/a&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=37770" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server/default.aspx">sql server</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+management+studio/default.aspx">sql server management studio</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/ssms/default.aspx">ssms</category></item><item><title>Thoughts on Nexus in SQL Server PDW</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2011/06/17/thoughts-on-nexus-in-sql-server-pdw.aspx</link><pubDate>Fri, 17 Jun 2011 10:49:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:36324</guid><dc:creator>jamiet</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/jamie_thomson/comments/36324.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jamie_thomson/commentrss.aspx?PostID=36324</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jamie_thomson/rsscomments.aspx?PostID=36324</wfw:comment><description>&lt;p&gt;I have been on a SQL Server Parallel Data Warehouse (aka PDW) training course this week and was interested to learn that you can't (yet) use SQL Server Management Studio (SSMS) against PDW, instead they ship a 3rd party tool called Nexus Chameleon. This was a bit of a disappointment at the beginning of the week (I'd prefer parity across SQL Server editions) but actually, having used Nexus for 3 days, I'm rather getting used to it. Some of it is a bit clunky (e.g. everything goes via an ODBC DSN) but once you get into using it its the epitome of &amp;quot;it just works&amp;quot;.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;For example, over the past few years I have come to rely on intellisense in SSMS and have learnt to cope with its nuances. There is no intellisense in Nexus but you know what....I don't really miss it that much. In a sense its a breath of fresh air not having to hope that you've crossed the line into that will it work/won't it work grey area with SSMS intellisense. And I don't end up with writing &lt;strong&gt;&lt;font color="#9b00d3"&gt;@@CONNECTIONS&lt;/font&gt; &lt;/strong&gt;instead of &lt;font color="#0000ff"&gt;&lt;strong&gt;FROM&lt;/strong&gt; &lt;/font&gt;anymore (anyone else suffer from this?) :)    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Moreover, Nexus is a standalone tool. Its not a bunch of features shoehorned into something else (Visual Studio).&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Another thing I like about Nexus is that you can actually do something with your resultset client-side. Take a look at the screenshots below:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/raw_47A72315.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="raw" border="0" alt="raw" src="http://sqlblog.com/blogs/jamie_thomson/raw_thumb_2BB5EE1D.png" width="853" height="567" /&gt;&lt;/a&gt;&amp;#160;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/grouped_4E2A7CD8.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="grouped" border="0" alt="grouped" src="http://sqlblog.com/blogs/jamie_thomson/grouped_thumb_3311ADCA.png" width="853" height="566" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can see Nexus allows you to group a resultest by a column or set of columns. Nice touch. I know that many people have submitted &lt;a href="http://connect.microsoft.com/sqlserver/feedback"&gt;Connect&lt;/a&gt; requests asking for the ability to do similar things in SSMS that would mean we don't have to copy resultsets into Excel (I know I have) - Nexus is a step in that direction.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Its refreshing to use a tool that just gets out of the way yet still has some really useful features. How ironic that it gets shipped inside an edition of SQL Server! If I had the option of using Nexus in my day job I suspect that over time I would probably gravitate back to SSMS because as yet I haven’t really stretched Nexus’ capabilities, overall SSMS *does* have more features and up until now I've never really had any objections to it ... but its been an interesting awakening into the nuances that plague SSMS.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Anyone else used Nexus? Any thoughts on it?    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=36324" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server/default.aspx">sql server</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+management+studio/default.aspx">sql server management studio</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+PDW/default.aspx">sql server PDW</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/ssms/default.aspx">ssms</category></item><item><title>SSMS in SQL Server Denali – “Insert snippet” and “Surround with”</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/11/08/ssms-in-sql-server-denali-insert-snippet-and-surround-with.aspx</link><pubDate>Mon, 08 Nov 2010 22:40:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:30276</guid><dc:creator>jamiet</dc:creator><slash:comments>5</slash:comments><comments>http://sqlblog.com/blogs/jamie_thomson/comments/30276.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jamie_thomson/commentrss.aspx?PostID=30276</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jamie_thomson/rsscomments.aspx?PostID=30276</wfw:comment><description>&lt;p&gt;SQL Server Denali CTP1 has hit the streets! I’ve been lucky enough to have been playing with it for a couple of weeks (thank you to those responsible – you know who you are) and that means I can now start talking publicly about some of the cool stuff I’ve learnt about this next version of SQL Server. In this blog post I’m quickly going to cover two new productivity enhancements in SQL Server Management Studio (SSMS):&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Surround With &lt;/li&gt;    &lt;li&gt;Insert Snippet &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;They’re very similar to each other so it makes sense to cover them both together.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;h1&gt;Surround With&lt;/h1&gt;  &lt;p&gt;First “Surround With”. This feature enables you to edit some existing code to wrap it with the scaffolding for common coding constructs like BEGIN…END, IF () BEGIN…END and WHILE () BEGIN…END. A picture speaks a thousand words so rather than tell you I’ll just show you instead.&lt;/p&gt;  &lt;p&gt;Take the following code snippet:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_77218F43.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_1C3ED9B0.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="394" height="152"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Its a perfectly valid stored procedure definition although I happen to be one of those guys who likes to have BEGIN and END statements marking out the stored procedure body – Surround With can help me with that.&lt;/p&gt;  &lt;p&gt;First I select the code that I want to “surround”:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_7ADF3413.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_610AFDE4.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="391" height="149"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Right-click and select “Surround With” (note that there is a keyboard shortcut too):&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_3FAB5848.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_37B3B5E6.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="525" height="182"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That brings up the surround with submenu where I browse to the option that I want, in this case its “BEGIN…END”&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_4B609F7A.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_2A6D2CD3.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="577" height="269"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Hit Enter and voila…I’ve surrounded my code with a BEGIN…END block:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_61D33E01.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_47FF07D2.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="495" height="280"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That’s it!&amp;nbsp; A small new feature but a pretty useful one I hope you’ll agree. BEGIN…END is a fairly noddy use case but it gets more useful for the slightly more verbose IF() and WHILE() constructs.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;h1&gt;Insert Snippet&lt;/h1&gt;  &lt;p&gt;This is probably the more useful of the two features I’m talking about here. “Insert Snippet” is similar to “Surround With” though I suspect you’ll be using it a lot more, in short what it does is create the skeleton DDL code for a new database object. All you need to do is right-click in a query window (or hit the keyboard shortcut CTRL+K, CTRKLX) and you’re presented with a list of code templates for various object types.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_464E3BFE.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_106946E4.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="408" height="258"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_1CF6F400.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_2DFB21E3.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="741" height="148"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;All you need to do is browse to the one you want, hit Enter, and you’re straight into the important business of development. Nice!&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_0171F1FD.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_39B06915.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="369" height="238"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;There is a Code Snippets Manager available for both Surround With and Insert Snippet that enables you to add your own snippets although not, as far I can see, edit the existing ones. I have an open Connect submission asking for that to be changed.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_1416C5E7.png"&gt;&lt;img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_43F167A8.png" style="background-image:none;border-width:0px;padding-left:0px;padding-right:0px;display:inline;padding-top:0px;" title="image" alt="image" border="0" width="526" height="387"&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That’s it! Features such as these have been available in third party add-ins for a while but its nice to see them make their way into the core product. Enjoy!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet"&gt;@jamiet&lt;/a&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=30276" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/denali/default.aspx">denali</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server/default.aspx">sql server</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/SQL+Server+2012/default.aspx">SQL Server 2012</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+management+studio/default.aspx">sql server management studio</category></item><item><title>Recover Backed-up query files in SQL Server Management Studio</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2010/07/19/recover-backed-up-query-files-in-sql-server-management-studio.aspx</link><pubDate>Mon, 19 Jul 2010 21:25:44 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:27152</guid><dc:creator>jamiet</dc:creator><slash:comments>23</slash:comments><comments>http://sqlblog.com/blogs/jamie_thomson/comments/27152.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jamie_thomson/commentrss.aspx?PostID=27152</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jamie_thomson/rsscomments.aspx?PostID=27152</wfw:comment><description>&lt;p&gt;This is a useful little tip that I discovered today.&lt;/p&gt;  &lt;p&gt;If SQL Server Management Studio (SSMS) ever crashes on you for whatever reason then there is a chance that you’ll lose whatever queries you had open at the time of the crash. Sometimes when you re-open SSMS it will ask you if you want to re-open any files that you recover but for some reason it doesn’t &lt;em&gt;always&lt;/em&gt; do that and in that instance you may think that your work has gone for good.&lt;/p&gt;  &lt;p&gt;Happily that’s not the case, not always anyway. Even if SSMS does not prompt you to recover those files they are probably still present on your machine. Go and check in your &lt;a target="_blank"&gt;C:\Users\YOURUSERIDHERE\Documents\SQL Server Management Studio\Backup Files\Solution1&lt;/a&gt; folder and you should find them waiting for you.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_09430B7C.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" class="wlDisabledImage" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_30D961D9.png" width="774" height="293" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I’m sure most of you could have worked out where they were stored, the real trick is knowing that they are stored in the first place and now….you do!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=27152" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server/default.aspx">sql server</category><category domain="http://sqlblog.com/blogs/jamie_thomson/archive/tags/sql+server+management+studio/default.aspx">sql server management studio</category></item></channel></rss>