<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.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 tag 'SQL Server 2012'</title><link>http://www2.sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+2012&amp;orTags=0</link><description>Search results matching tag 'SQL Server 2012'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Use TPC Database Benchmarks to Save Money</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/04/29/use-tpc-database-benchmarks-to-save-money.aspx</link><pubDate>Mon, 29 Apr 2013 14:47:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48817</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Last month, I began a series of articles describing database application benchmarking. In&amp;nbsp;&lt;a href="http://www.dbta.com/Articles/Columns/SQL-Server-Drill-Down/Introduction-to-TPC-Database-Benchmarks-86891.aspx"&gt;the first article&lt;/a&gt;, I told you about different ways that you can construct your own database application benchmark. However, you don’t have to reinvent the wheel. The Transaction Processing Council (&lt;a href="http://www.tpc.org/"&gt;www.tpc.org&lt;/a&gt;) has already created a large number of database benchmarks that are extremely useful and informative.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;I also described last month how the TPC provides several different types of benchmark tests. For example the TPC-C and TPC-E benchmarks are extremely useful for measuring transaction throughput. On the other hand, the TPC – H benchmark is &amp;nbsp;useful for measuring business intelligence workloads.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Today, I would like to give you a primer on how to read the benchmark reports that are published by the major database and hardware vendors.&amp;nbsp; You never know when a vendor will publish a new benchmark. There’s no set schedule for them to publish their test findings. Of course, you can always look for new advertisements from many of the vendors. But that’s very imprecise. I prefer to find out if there are new results on my own and so I typically start at&amp;nbsp;&lt;a href="http://tpc.org/information/results.asp"&gt;http://tpc.org/information/results.asp&lt;/a&gt;. There, I’ll check to see if my favorite hardware or database vendors have published any new test results....&lt;a href="http://www.dbta.com/Articles/Columns/SQL-Server-Drill-Down/Use-TPC-Database-Benchmarks-to-Save-Money-87652.aspx"&gt;&amp;nbsp;read more&amp;nbsp;&lt;/a&gt;...&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Many thanks,&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a style="line-height:19px;" href="http://twitter.com/kekline"&gt;- Follow me on Twitter!&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="https://plus.google.com/u/1/113032055249023350257?rel=author"&gt;- Google Author&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Read the New TPC Database Benchmarking Series</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/04/22/read-the-new-tpc-database-benchmarking-series.aspx</link><pubDate>Mon, 22 Apr 2013 18:17:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48816</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="line-height:19px;"&gt;Let's talk about database application benchmarking.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="line-height:19px;"&gt;This is a skill set which, in my opinion, is one of the major differentiators between a journeyman-level DBA and a true master of the trade. In this article published in my monthly column at&amp;nbsp;&lt;a target="_blank" href="http://www.dbta.com/"&gt;&lt;em&gt;Database Trends &amp;amp; Applications magazine&lt;/em&gt;&lt;/a&gt;, I'll give you a brief introduction to TPC benchmarks and, in future articles, I'll be telling you how to extract specific pieces of valuable information from the published benchmark results.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="line-height:19px;"&gt;But let's get started with an overview …&amp;nbsp;&lt;/span&gt;&lt;a target="_blank" style="line-height:19px;" href="http://www.dbta.com/Articles/Columns/SQL-Server-Drill-Down/Introduction-to-TPC-Database-Benchmarks-86891.aspx"&gt;read more.&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:small;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Many thanks,&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:small;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:small;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;- Follow me on Twitter!&lt;/a&gt;&lt;br&gt;&lt;a href="https://plus.google.com/u/1/113032055249023350257?rel=author"&gt;- Google Author&lt;/a&gt;&lt;/p&gt;</description></item><item><title>SQL Server 2012 Cumulative Update #7 is available!</title><link>http://www2.sqlblog.com/blogs/aaron_bertrand/archive/2013/04/15/sql-server-2012-cumulative-update-7-is-available.aspx</link><pubDate>Mon, 15 Apr 2013 12:45:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48682</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;&lt;span&gt;The SQL Server team has released CU #7 for SQL Server 2012 RTM.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;KB article:&amp;nbsp;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/2823247"&gt;http://support.microsoft.com/kb/2823247&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Build # is 11.0.2405&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This build has 17 fixes&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;i&gt;&lt;br&gt;Relevant for builds 11.0.2100 -&amp;gt; 11.0.2404. Do not attempt to install on SQL Server 2012 SP1 (any build &amp;gt;= 11.0.3000) or any previous version.&lt;/i&gt;&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PASS Business Analytics Conference (BAC) Recap</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/04/14/pass-business-analytics-conference-bac-recap.aspx</link><pubDate>Sun, 14 Apr 2013 14:15:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48667</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The PASS Business Analytics Conference (&lt;a href="http://www.passbaconference.com/"&gt;PASS BAC&lt;/a&gt;) is&amp;nbsp;&lt;a href="http://www.sqlpass.org/"&gt;PASS&lt;/a&gt;' first&amp;nbsp;foray&amp;nbsp;into an event that is dedicated to business intelligence, big data, data visualization, and business analytics. &amp;nbsp;And it totally makes sense for PASS to move in this direction, over and above the flagship community work centered on database management and application development. &amp;nbsp;Why? &amp;nbsp;Because business analytics is all about how to&amp;nbsp;&lt;em&gt;apply&amp;nbsp;&lt;/em&gt;the data being collected and managed by all of those developers and DBAs. &amp;nbsp;And, at the end of the day, how we use and apply our data is really the nexus of its value. &amp;nbsp;That's what matters to business. &amp;nbsp;You can&amp;nbsp;&lt;a href="http://passbaconference.com/Connect/Blog/entryid/542/Taking-Business-Analytics-to-the-Next-Level.aspx#.UWZVyFeJuzE"&gt;read the speech from the standing president&lt;/a&gt;, Bill Graziano (&lt;a href="https://twitter.com/#!/billgraziano"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://weblogs.sqlteam.com/billg/rss.aspx"&gt;Blog&lt;/a&gt;), or watch it online at the PASS website.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;img class="alignnone" alt="" width="640" height="386" style="border:1px solid black;cursor:default;margin:2px;" src="https://sphotos-b.xx.fbcdn.net/hphotos-snc6/892805_435264543230101_1655024948_o.png"&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The day one highlight, introduced by the SQL Server team's best presenter - Amir Netz (&lt;a href="https://twitter.com/AmirNetz"&gt;Twitter&lt;/a&gt;), is the release of a new BI data visualization tool called&amp;nbsp;Project “GeoFlow” for Excel. &amp;nbsp;GeoFlow is a 3D visualization and storytelling tool that helps you&amp;nbsp;map, explore and interact with both geographic and chronological data for visualizing data which is difficult to identify in traditional 2D tables and charts. With GeoFlow, you can plot up to a million rows of data in 3D on Bing Maps, see data changes over time and share findings through appealing screenshots and cinematic, guided video tours of the data. It's really something you have to see to understand – check out the video demo and screenshots below. You can also&amp;nbsp;&lt;a href="http://spr.ly/getgeoflow"&gt;download&amp;nbsp;&lt;/a&gt;and try it out firsthand today. It’s an entirely new way to experience and share insights – one you’ll probably enjoy. &amp;nbsp;&lt;span style="line-height:19px;"&gt;For more information on GeoFlow, check out the&amp;nbsp;&lt;/span&gt;&lt;a target="_blank" style="line-height:19px;" href="http://blogs.office.com/b/microsoft-excel/archive/2013/04/11/dallas-utilities-electricity-seasonal-use-simulation-with-geoflow-preview-and-powerview.aspx"&gt;Excel team’s blog&lt;/a&gt;&lt;span style="line-height:19px;"&gt;&amp;nbsp;and visit the&amp;nbsp;&lt;/span&gt;&lt;a style="line-height:19px;" href="http://www.microsoft.com/en-us/bi/Products/Office.aspx"&gt;BI website.&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;img class="alignright" alt="" width="150" height="200" style="border:0px;cursor:default;float:right;" src="http://pricetheory.uchicago.edu/levitt/images/Photo-of-Steven-Levitt.png"&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The highlight for me, aside from connecting with so many friends and colleagues in the exhibit hall at the&amp;nbsp;&lt;a href="http://www.sqlsentry.net/"&gt;SQL Sentry&lt;/a&gt;&amp;nbsp;booth, was the day 2 keynote address by&amp;nbsp;&lt;a href="http://pricetheory.uchicago.edu/levitt/home.html"&gt;Dr. Steve Levitt&lt;/a&gt;&amp;nbsp;of&amp;nbsp;&lt;a href="http://www.freakonomics.com/"&gt;Freakonomics&lt;/a&gt;&amp;nbsp;fame. &amp;nbsp;Freakonomics is both&amp;nbsp;&lt;a href="http://www.freakonomics.com/blog/"&gt;a brilliant blog&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://www.amazon.com/Freakonomics-Economist-Explores-Hidden-Everything/dp/0060731338/ref=sr_1_1?ie=UTF8&amp;amp;qid=1365774766&amp;amp;sr=8-1&amp;amp;keywords=freakonomics"&gt;the number one business book in America&lt;/a&gt;. &amp;nbsp;His insights are well documented in a variety of places, not just in his own channels, but also in places such as&amp;nbsp;&lt;a href="http://www.ted.com/speakers/steven_levitt.html"&gt;TEDtalks&lt;/a&gt;. &amp;nbsp;I'm also really enjoying his new website,&amp;nbsp;&lt;a href="https://www.freakonomicsexperiments.com/"&gt;https://www.freakonomicsexperiments.com/&lt;/a&gt;.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Steve presented an outstanding keynote, full of funny anecdotes and insights into the world of data analytics and interpretation. A couple of his comments really resonated with me which are worth repeating. In one story, he pointed out how some of the greatest insights came from corporate data which was collected incidentally or coincidentally. The data that help provide the greatest and most valuable revelations were from data that was basically a corporate afterthought. &amp;nbsp;Another revelation - he's only now starting to make much use of relational databases. &amp;nbsp;He primarily uses spreadsheets, flat files, and the&amp;nbsp;&lt;a href="http://www.stata.com/"&gt;Stata&lt;/a&gt;&amp;nbsp;statistical analysis tool. &amp;nbsp;Another insight, which I've known and&amp;nbsp;proselytized&amp;nbsp;as "the Fresh Pair of Eyes" approach, is that it really helps him to gain insights in a problem by knowing as little about the problem as possible. &amp;nbsp;As it turns out, if you know the industry or the challenge at the core of the problem, you make a lot of assumptions that limit your means of interpreting data. &amp;nbsp;By knowing nothing or next to nothing about a particular problem, you can ask the questions that insiders never ask. &amp;nbsp;Here's an example (not from the keynote though) - let's say you're an energy company CEO. &amp;nbsp;You might spend a lot of time thinking about how to accommodate the expected huge increase in energy consumption due to lots of people driving electric cars. &amp;nbsp;You might tell your data analysts to figure out when and how to ensure peak electrical usage is available at the times when consumers are recharging their electric vehicles. &amp;nbsp;But a fresh pair of eyes would point out that electric cars, in their present form, are a&amp;nbsp;&lt;a href="http://www.caranddriver.com/features/decade-in-review-electric-cars"&gt;huge energy boondoggle&lt;/a&gt;&amp;nbsp;compared to hybrid and plain ol' cheap, high-mileage models like the Honda Civic. &amp;nbsp;Consumers will never recoup their investment in a high-priced, all-electric car compared to a cheap, gas sipping model.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;img class="size-medium wp-image-5629 alignright" alt="IMG_0287 - Copy" width="300" height="164" style="border:0px;cursor:default;float:right;" src="http://kevinekline.com/wp-content/uploads/2013/04/IMG_0287-Copy-300x164.jpg"&gt;At the heart of his presentation is the fact that data is meaningless when it doesn't answer important questions! &amp;nbsp;Many times, data professionals spend so much time devising elegant SQL statements and clever user-interfaces that they forget about using a fresh pair of eyes when they look at business questions. &amp;nbsp;Our session,&amp;nbsp;&lt;em&gt;Operational Excellence for the BI Pro,&amp;nbsp;&lt;/em&gt;focused on the trails and travails of successfully implementing and growing the footprint of a business intelligence project.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;In addition, we had a fun and very informative panel discussion breakfast on Thursday of the PASS BAC. At right is a picture of Nick Harshbarger, Justin Randal, and me prior to the session. &amp;nbsp;The audience was very engaged and, despite having no slides, there was a whole lot of wisdom goin' on. &amp;nbsp;The panel included Chris Webb&amp;nbsp;(&lt;a href="https://twitter.com/#!/Technitrain"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://cwebbbi.spaces.live.com/feed.rss"&gt;Blog&lt;/a&gt;),&amp;nbsp;Craig Utley,&amp;nbsp;Jen Stirrup&amp;nbsp;(&lt;a href="https://twitter.com/#!/jenstirrup"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.jenstirrup.com/"&gt;Blog&lt;/a&gt;), Paul Turley (&lt;a target="_blank" href="http://sqlserverbiblog.com/"&gt;Blog&lt;/a&gt;), &amp;nbsp;and Stacia Misner&amp;nbsp;(&lt;a href="https://twitter.com/#!/StaciaMisner"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://blog.datainspirations.com/"&gt;Blog&lt;/a&gt;). I served as the moderator and facilitator of the session. &amp;nbsp;We recorded the session, with a little HD Flip camera, and although I haven't checked out the file yet, we're hopeful we can post it or at least a transcript soon.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Do you have a "fresh eyes" story? I'd love to hear it! &amp;nbsp;Post a comment here!&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Many thanks,&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;-Follow me on Twitter!&lt;/a&gt;&lt;br&gt;&lt;a href="https://plus.google.com/u/1/113032055249023350257?rel=author"&gt;- Google Author&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>The All-New 'Database Lifecycle Management&amp;quot; is available on MSDN</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/04/05/the-all-new-database-lifecycle-management-is-available-on-msdn.aspx</link><pubDate>Fri, 05 Apr 2013 10:51:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48547</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The initial release of&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/jj907294.aspx"&gt;&lt;strong&gt;Database Lifecycle Management&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;is now available on MSDN.&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;text-align:center;"&gt;&lt;a href="http://i.msdn.microsoft.com/dynimg/IC635547.gif"&gt;&lt;img class="aligncenter" alt="" width="811" height="627" style="border:0px;cursor:default;display:block;margin-left:auto;margin-right:auto;" src="http://i.msdn.microsoft.com/dynimg/IC635547.gif"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The site is something called "curated content". This means it's a single consolidated location to look up lots of disparate articles and content, all in one easy to search location.&amp;nbsp;This “curated content view” contains the best content, video, and community-centric information from Microsoft, including topics like:&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;SQL Server Data Tools&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Get started with sample projects, code samples&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Video demos by Gert Drapers&amp;nbsp;(&lt;a href="http://blogs.msdn.com/b/gertd/"&gt;blog&lt;/a&gt;)&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Script common data portability tasks using Sqlpackage.exe&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Link to the SSDT team blog&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;SQL Server Management Studio&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Manage SQL Database using SSMS&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Backup and restore w/ SQL Azure&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Migrate local databases to Azure&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Video demo of hybrid scenarios by Gert Drapers (&lt;a href="http://blogs.msdn.com/b/gertd/"&gt;blog&lt;/a&gt;)&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Windows Azure SQL Database&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· SQL Database backup and restore&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Import/export SQL Database&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Windows Azure training kit&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp; &amp;nbsp;· Connection management and troubleshooting connections&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Enjoy,&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;-Follow me on Twitter!&lt;/a&gt;&lt;br&gt;&lt;a href="https://plus.google.com/u/1/113032055249023350257?rel=author"&gt;- Google Author&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Squishy Limits in SQL Server Express Edition</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/03/28/squishy-limits-in-sql-server-express-edition.aspx</link><pubDate>Thu, 28 Mar 2013 12:19:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48447</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;It's an old story you've probably heard before. &amp;nbsp;Provide a free version of your software product with strict limitations on performance or other specific capabilities so that folks can give it a try without risk, while you minimize the chance of&amp;nbsp;cannibalizing&amp;nbsp;sales of your commercial products. &amp;nbsp;Microsoft has take this strategy with&amp;nbsp;&lt;a href="http://www.microsoft.com/en-us/sqlserver/editions/2012-editions/express.aspx"&gt;SQL Server Express Edition&lt;/a&gt;, not only to increase adoption in the student market but also to counter the threat of open-source (i.e. free) relational databases like MySQL for entry-level applications.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;One such limitation of SQL Server Express Edition is that it supports no more than 1GB of RAM for the instance. &amp;nbsp;Of course, you could have many Express Edition instances on a single Windows server, each with its own 1GB of RAM.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;But what does that metric of 1GB of RAM actually mean? &amp;nbsp;The key thing to remember is that the restriction is for&amp;nbsp;&lt;em&gt;&lt;strong&gt;buffer&lt;/strong&gt;&lt;strong&gt;&amp;nbsp;cache.&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;Since SQL Server has many other caches, even when not counting the plan cache, there are plenty of other caches within SQL Server. &amp;nbsp;(Run a query against&amp;nbsp;&lt;em&gt;sys.dm_os_memory_clerks&lt;/em&gt;&amp;nbsp;if you'd like to see some of the others). &amp;nbsp;Because only the buffer cache has the strict 1GB limitation, you can actually watch SQL Server Express Edition's memory working set size grow to around 1.4-1.5GB due to the other memory caches at play.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Pawel Potasinski, a SQL Server MVP from Poland (&lt;a href="http://twitter.com/pawelpotasinski"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://sqlgeek.pl/"&gt;Blog&lt;/a&gt;), once&amp;nbsp;&lt;a href="http://sqlgeek.pl/2010/08/23/pl-sql-server-limity-w-sql-server-2008-r2-express-edition/"&gt;posted an interesting repro&lt;/a&gt;&amp;nbsp;for this behavior:&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;padding-left:30px;"&gt;&lt;span style="font-family:Consolas, Monaco, monospace;font-size:12px;line-height:18px;"&gt;-- Assess amount of databases resident in buffer cache&lt;/span&gt;&lt;/p&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;SELECT
 CASE
 WHEN database_id = 32767 THEN 'mssqlsystemresource'
 ELSE DB_NAME(database_id)
 END AS [Database],
 CONVERT(numeric(38,2),(8.0 / 1024) * COUNT(*)) AS [MB in buffer cache] 
FROM sys.dm_os_buffer_descriptors 
GROUP BY database_id 
ORDER BY 2 DESC; 
GO&lt;/pre&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;-- Assess amount of tables resident in buffer cache
SELECT
 QUOTENAME(OBJECT_SCHEMA_NAME(p.object_id)) + '.' +
 QUOTENAME(OBJECT_NAME(p.object_id)) AS [Object],
 CONVERT(numeric(38,2),(8.0 / 1024) * COUNT(*)) AS [MB In buffer cache] 
FROM sys.dm_os_buffer_descriptors AS d 
 INNER JOIN sys.allocation_units AS u ON d.allocation_unit_id = u.allocation_unit_id 
 INNER JOIN sys.partitions AS p ON (u.type IN (1,3) AND u.container_id = p.hobt_id) OR (u.type = 2 AND u.container_id = p.partition_id) 
WHERE d.database_id = DB_ID() 
GROUP BY QUOTENAME(OBJECT_SCHEMA_NAME(p.object_id)) + '.' + QUOTENAME(OBJECT_NAME(p.object_id))
ORDER BY [Object] DESC;
GO&lt;/pre&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;-- Fill up Express Edition's buffer allocation
IF OBJECT_ID(N'dbo.test', N'U') IS NOT NULL
 DROP TABLE dbo.test;
GO&lt;/pre&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;CREATE TABLE dbo.test (col_a char(8000));
GO&lt;/pre&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;INSERT INTO dbo.test (col_a)
 SELECT REPLICATE('col_a', 8000)
 FROM sys.all_objects 
 WHERE is_ms_shipped = 1;&lt;/pre&gt;&lt;pre style="font-size:12px;line-height:18px;font-family:Consolas, Monaco, monospace;padding-left:30px;"&gt;CHECKPOINT; 
GO 100&lt;/pre&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;The bottom line for the hard memory limit of SQL Server Express Edition is "Yes, it's limited. &amp;nbsp;But it's a squishy limit. Not a hard limit."&lt;/em&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;span style="line-height:19px;"&gt;Although your mileage may vary, I'd bet a dollar that you'll find more than 1GB in the active working set for your instance of SQL Server Express Edition. &amp;nbsp;I am curious, however, if you're seeing much variation between versions and even service packs of SQL Server? &amp;nbsp;Let me know if you try this out on more than one version and/or service pack level of SQL Server. &amp;nbsp;Did it change much between versions? &amp;nbsp;Let me know!&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Enjoy,&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;-Follow me on Twitter!&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;&lt;/a&gt;&lt;br&gt;&lt;a href="https://plus.google.com/u/1/113032055249023350257?rel=author"&gt;Google Author&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>SQLintersection!</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2013/03/27/sqlintersection.aspx</link><pubDate>Wed, 27 Mar 2013 13:47:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48432</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;The best emotion to describe how I'm feeling is 'astounded'. &amp;nbsp;I'm astounded that I'm in such august company to be speaking the&amp;nbsp;&lt;a href="http://www.sqlintersection.com/"&gt;SQLIntersection&lt;/a&gt;&amp;nbsp;(&lt;a href="http://twitter.com/iSQL"&gt;#iSQL&lt;/a&gt;)&amp;nbsp;conference. &amp;nbsp;&lt;a href="http://www.sqlskills.com/blogs/kimberly/sqlintersection-new-conference/"&gt;Read the blog post from my first SQL Server mentor, Kimberly Tripp, which tells you all about SQLintersection&lt;/a&gt;.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;Check out this list of speakers:&lt;/p&gt;&lt;ul style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;li&gt;Aaron Bertrand, Sr. Consultant, SQL Sentry, Inc. [&lt;a href="http://sqlblog.com/blogs/aaron_bertrand/default.aspx"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/AaronBertrand"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Andrew J. Kelly, Mentor, SolidQ [&lt;a href="http://sqlblog.com/blogs/andrew_kelly/default.aspx"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/gunneyk"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Bob Ward, Principal Architect Escalation Engineer, Microsoft [&lt;a href="http://blogs.msdn.com/b/psssql/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.twitter.com/bobwardms"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Brent Ozar, Brent Ozar Unlimited [&lt;a href="http://www.brentozar.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/BrentO"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Conor Cunningham, Principal Architect, SQL Server, Microsoft [&lt;a href="http://blogs.msdn.com/b/conor_cunningham_msft/"&gt;blog&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Grant Fritchey, Product Evangelist, Red Gate Software [&lt;a href="http://www.scarydba.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="https://twitter.com/GFritchey"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Jeremiah Peschka, Brent Ozar Unlimited [&lt;a href="http://www.brentozar.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/PeschkaJ"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Joseph Sack, Principal Consultant, SQLskills.com [&lt;a href="http://www.sqlskills.com/blogs/Joe"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/JosephSack"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Kendra Little, Managing Director, Brent Ozar Unlimited [&lt;a href="http://www.brentozar.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/KendraLittle"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Kevin Kline, Director of Engineering Services, SQL Sentry, Inc. [&lt;a target="_blank" href="http://sqlblog.com/blogs/kevin_kline/default.aspx"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a target="_blank" href="http://twitter.com/KeKline"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Kimberly L. Tripp, President/Founder, SQLskills.com [&lt;a href="http://www.sqlskills.com/blogs/Kimberly"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/KimberlyLTripp"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Mat Young, Senior Director of Products, Fusion-io [&lt;a target="_blank" href="http://www.fusionio.com/blog"&gt;blog&amp;nbsp;&lt;/a&gt;|&amp;nbsp;&lt;a target="_blank" href="https://twitter.com/iSpider"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Paul S. Randal, CEO / Owner, SQLskills.com [&lt;a href="http://www.sqlskills.com/blogs/Paul"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://twitter.com/PaulRandal"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Paul White, SQL Kiwi Limited [&lt;a href="http://sqlblog.com/blogs/paul_white/default.aspx"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.twitter.com/SQL_Kiwi"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Steve Jones, Editor, SQLServerCentral.com [&lt;a href="http://www.sqlservercentral.com/blogs/Steve_Jones/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="https://twitter.com/WayOutwest"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Sumeet Bansal, Principal Solutions Architect, Fusion-io [&lt;a target="_blank" href="http://www.fusionio.com/blog"&gt;blog&amp;nbsp;&lt;/a&gt;|&amp;nbsp;&lt;a target="_blank" href="https://twitter.com/SumeetBansal_"&gt;twitter&lt;/a&gt;]&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&amp;nbsp;Read the list of&amp;nbsp;&lt;a href="http://www.sqlintersection.com/shows/april13/sessions.aspx?s=2"&gt;SQL Server sessions&lt;/a&gt;&amp;nbsp;here. &amp;nbsp;On top of the list of outstanding sessions to attend, I'll be giving a keynote on Tuesday afternoon. Witness:&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;text-align:center;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2013/03/iSQL-Keynote.jpg"&gt;&lt;/a&gt;&lt;a href="http://www.sqlintersection.com/shows/images/schedulepdfs/Sp2013_SQL%20Sched_v2.pdf"&gt;&lt;img class="aligncenter  wp-image-5597" alt="iSQL Keynote" width="757" height="621" style="border:0px;cursor:default;display:block;margin-left:auto;margin-right:auto;" src="http://kevinekline.com/wp-content/uploads/2013/03/iSQL-Keynote.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;So the only thing between the attendees and the booze in the reception hall is our keynote address?!? &amp;nbsp;Oh yeah, that's going to go down real smooth, isn't it? &amp;nbsp;I'll last about as long as a puny henchman between James Bond and the villain of the movie. &amp;nbsp;Sumeet Bansal, from Fusion-IO, will have to survive until the credits roll. &amp;nbsp;We'll be talking about high performance computing on SQL Server 2012 with an eye towards high availability, AlwaysOn, and Availability Groups.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;If you're in Las Vegas, I hope to see you there! &amp;nbsp;If not, you should consider coming to this excellent conference.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;-Kevin&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13.333333969116211px;line-height:18.99305534362793px;"&gt;&lt;a href="http://twitter.com/kekline"&gt;-Follow me on Twitter!&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Connected development in SSDT versus SSMS</title><link>http://www2.sqlblog.com/blogs/jamie_thomson/archive/2013/03/19/connected-development-in-ssdt-versus-ssms.aspx</link><pubDate>Tue, 19 Mar 2013 16:28:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48314</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;When you install the database projects template of SSDT you get SQL Server Object Explorer (SSOX) installed as well. SSOX is a pane within Visual Studio and is the main enabler of the Connected Development experience that the SSDT team have attempted to provide.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML15dc3f62_18DB391E.png"&gt;&lt;img title="SNAGHTML15dc3f62" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="SNAGHTML15dc3f62" width="335" height="118" src="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML15dc3f62_thumb_0C6D15F5.png"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;SSOX provides some really cool capabilities that are not in SQL Server Management Studio (I hope to blog about them in the near future). In theory these capabilities make it possible for a database developer to spend all their time in SSDT (i.e. Visual Studio) thus making SSMS a pureplay DBA tool (this does of course depend on your definition of both a database developer and a DBA, but I’m not getting into that debate here).&lt;/p&gt;  &lt;p&gt;With that in mind I have spent a few days trying to work without SSMS, preferring to live wholly inside Visual Studio instead. By and large I was able to do everything I needed to do from within Visual Studio however there were a few nuances about the experience that kept pushing me back to SSMS, I detail those nuances below.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;hr&gt;  &lt;h3&gt;Server groups&lt;/h3&gt;  &lt;p&gt;SSOX combines the functions of SSMS’s Object Explorer and Registered Servers pane. I don’t mind either way of working but it does mean that there is no ability to group servers in SSOX like you can in the Registered Servers pane&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_568820DA.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="244" height="97" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_4E907E78.png"&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_0977B142.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="244" height="230" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_6C8E8C6C.png"&gt;&lt;/a&gt; &lt;/p&gt;  &lt;h3&gt;F6&lt;/h3&gt;  &lt;p&gt;In SSMS I regularly use the F6 keyboard shortcut to jump between the query, results &amp;amp; messages panes of a query window. No such keyboard shortcut exists in SSDT and they’ve already canned &lt;a target="_blank" href="https://connect.microsoft.com/sqlserver/feedback/details/780990/ssdt-f6-to-move-between-panes-in-a-query-window#tabs"&gt;my request on Connect to get this fixed&lt;/a&gt; (even though it laughably has status “closed as fixed”).&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;i&gt;UPDATE: See the comments below where Brett Gerhardi informed me of a different keyboard shortcut that does the same thing as F6. Actually its not quite the same, if you have multiple resultsets in your results pane then the behaviour is slightly different to F6 in SSMS - but that's not an issue you'll hot frequently.&lt;/i&gt;&lt;/p&gt;  &lt;h3&gt;Change Connection&lt;/h3&gt;  &lt;p&gt;The context menu in SSMS provides the ability to change a connection as well as connect and disconnect:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_72693005.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="546" height="115" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_11ABD6D9.png"&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;SSDT doesn’t have change connection and believe me, you don’t know how much you use a feature until its not there:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_09B43477.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="438" height="58" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_28F6DB4A.png"&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;There’s also no hotkey to jump to “Connection” on the context menu like there is in SSMS (“C”) and I find that annoying too.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;hr&gt;Those were the main annoyances that forced me back to SSMS. The lack of F6 was a major bugbear for me as I am a big keyboard shortcut junkie. If such things don’t bother you then you may be able to live in Visual Studio quite happily. If you have any similar experiences to share I’d be keen to read them.&lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://twitter.com/jamiet"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item><item><title>March 2013 Cumulative Updates - SQL Server 2012 SP1 &amp;amp; 2008 SP3</title><link>http://www2.sqlblog.com/blogs/aaron_bertrand/archive/2013/03/18/march-2013-cumulative-updates-sql-server-2012-sp1-2008-sp3.aspx</link><pubDate>Mon, 18 Mar 2013 21:40:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48295</guid><dc:creator>AaronBertrand</dc:creator><description>
&lt;p&gt;&lt;b&gt;SQL Server 2012 Service Pack 1 Cumulative Update #3&lt;/b&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build # 11.0.3349
&lt;/li&gt;

&lt;li&gt;KB Article: &lt;a target="_blank" href="http://support.microsoft.com/kb/2812412"&gt;KB #2812412&lt;/a&gt;
&lt;/li&gt;

&lt;li&gt;38 fixes!
&lt;/li&gt;

&lt;li&gt;Relevant for builds 11.0.3000 -&amp;gt; 11.0.3348
&lt;/li&gt;

&lt;li&gt;&lt;b&gt;NOT for SQL Server 2012 RTM (11.0.2100 -&amp;gt; 11.0.2999)&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
&lt;b&gt;&lt;br&gt;SQL Server 2008 Service Pack 3 Cumulative Update #10&lt;/b&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build # 10.00.5835
&lt;/li&gt;

&lt;li&gt;KB Article: &lt;a target="_blank" href="http://support.microsoft.com/kb/2814783"&gt;KB #2814783&lt;/a&gt;
&lt;/li&gt;

&lt;li&gt;8 fixes
&lt;/li&gt;

&lt;li&gt;Relevant for builds 10.00.5500 -&amp;gt; 10.00.5834
&lt;/li&gt;

&lt;li&gt;&lt;b&gt;NOT for SQL Server 2008 R2 (10.50.xxxx)&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;</description></item><item><title>SQL Server Backup to Cloud – Managing Interrupted backups  </title><link>http://www2.sqlblog.com/blogs/sqlos_team/archive/2013/03/12/sql-server-backup-to-cloud-managing-interrupted-backups.aspx</link><pubDate>Tue, 12 Mar 2013 21:48:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48228</guid><dc:creator>SQLOS Team</dc:creator><description>&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Writer: Karthika Raman&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Technical Reviewers: Guy Bowerman, Pat Schaefer, Andrew Cherry&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;On January 24, 2013, the SQL Server engineering team released new functionality in SQL Server 2012 SP1 CU2, enabling &lt;/span&gt;&lt;a href="http://sqlblog.com/b/windowsazure/archive/2013/01/24/sql-server-backup-and-restore-to-cloud-simplified.aspx"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;SQL Server native backup to cloud&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;. The steps to creating a SQL Server backup to Windows Azure Blob storage are simple, but if a backup is interrupted it can leave behind blob files that require additional steps to delete.&amp;nbsp; Some of this information along with other best practices and troubleshooting tips is addressed in the &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/jj919149.aspx"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Best Practices topic&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt; in SQL Server Books online.&amp;nbsp; In this blog post, we focus on the interrupted backup scenario, identifying locked blobs that might be partial or corrupt as a result of interrupted backups, and deleting them. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;The&amp;nbsp;&lt;span&gt;&lt;u&gt;Blob, Blob Leases, and SQL Server&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&amp;nbsp;section provides background information about blobs and leases in relation to SQL Server Backup to cloud. The&amp;nbsp;&lt;span&gt;&lt;u&gt;Managing Interrupted Backup&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&amp;nbsp;section discusses managing interrupted backups and a sample PowerShell code you can use to get started.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-size:medium;"&gt;&lt;span&gt;&lt;span style="font-family:Cambria;"&gt;Blobs, Blob Leases, and SQL Server&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;In order to get exclusive write access to a blob, a lease is acquired. Acquiring a lease helps avoid accidental overwrites or deletes when there is already another process accessing a blob. Blob leases are two types:&amp;nbsp; One type of lease has a set duration.&amp;nbsp; This duration can be anywhere from 15 to 60 seconds. The lease is active for the time of duration, but can be reacquired before it expires, to complete the backup or restore process, by specifying the existing lease Id.&amp;nbsp;&amp;nbsp; The other type where there is no set duration is an infinite lease.&amp;nbsp; Infinite leases are active unless explicitly released or broken.&amp;nbsp; In effect, the infinite lease on a blob acts like a lock.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;SQL Server acquires an infinite lease for backup and restore processes.&amp;nbsp; In the case of backup, a unique lease Id is used, and in the case of restore, a known lease id ‘BAC2BAC2BAC2BAC2BAC2BAC2BAC2BAC2’ is used.&amp;nbsp; Once the backup or restore process is successfully completed, the lease is released.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;What happens when a backup or restore is interrupted?&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;During restores, the restore process always attempts to release the lease unless the network is interrupted.&amp;nbsp; If the lease remains active, overwrites or deletes cannot be performed until the lease is broken or released through a subsequent restore.&amp;nbsp; So an interrupted restore may not often be something that requires close monitoring.&amp;nbsp; However, interrupted backups present a different scenario.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;If the backup process is interrupted, it can result in a partial or corrupt blob with an active lease which remains, blocking any overwrites, or deletes.&amp;nbsp; It also prevents any restores using this file, since the restore process needs to acquire a lease with the well-known lease Id, but the existing active backup lease prevents this – which is probably a desirable result as the file could be partial or corrupt.&amp;nbsp; So with an active lease on the blob, the blob remains locked until the lease is explicitly broken.&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-size:medium;"&gt;&lt;span&gt;&lt;span style="font-family:Cambria;"&gt;Managing Interrupted Backups&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;As stated in the section above, interrupted backups need to be monitored and managed.&amp;nbsp; This section walks through the process of monitoring interrupted backups, identifying locked blobs, and breaking the lease using PowerShell scripts. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Backups can be interrupted due to several reasons such as network failures, process canceled by the user, power outage etc.&amp;nbsp; As interrupted backups can result in a partial blob with an active lease, in order to overwrite this file or delete it, you must first identify such blobs and break the lease.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;One way to identify such blobs is to actively monitor backup return codes/errors and interrupted backups.&amp;nbsp; Below is a list of error/return codes that are returned from SQL Server Backup and restore process, which you can use to monitor for blob files with active leases.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Msg 3202, Level 16, State 1, Line 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Write on "&lt;/span&gt;&lt;a href="https://mystorage.blob.core.windows.net/mycontainer/test.bak"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;https&lt;/span&gt;&lt;/a&gt;&lt;a href="https://mystorage.blob.core.windows.net/mycontainer/test.bak"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;://mystorage.blob.core.windows.net/mycontainer/test.bak&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;" failed: Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: &lt;span&gt;(412)&lt;/span&gt; There is currently a lease on the blob and no lease ID was specified in the request.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;BackupIoRequest::ReportIoError: read failure on backup device &lt;/span&gt;&lt;a href="https://mystorage.blob.core.windows.net/mycontainer/test.bak"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;https://mystorage.blob.core.windows.net/mycontainer/test.bak &lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;'. Operating system error Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: &lt;span&gt;(409)&lt;/span&gt; Conflict..&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;This method won’t catch cases where the backup process is aborted or the machine goes down.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Another way is to run a script periodically to look for blobs with active leases in the storage account.&amp;nbsp; The PowerShell script example included here is a good starting point.&amp;nbsp; The PowerShell script establishes an authenticated connection to the storage account, looks for all files in a specified container that are in a ‘locked’ state and filters out restore leases using the well-known lease Id.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Below is the PowerShell example to identify locked blobs and breaking the lease. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;A downloadable version of the code is available on the &lt;/span&gt;&lt;a href="http://gallery.technet.microsoft.com/Breaking-leases-on-locked-28f896dc"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;TechNet code gallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span style="font-size:small;"&gt;Important Note:&amp;nbsp; &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span style="font-size:small;"&gt;This example is intended to show how to break a lease, but running this while a backup is running will cause the backup to fail as it will break the lease that SQL Server acquired to do the backup.&amp;nbsp; Before running this script or scheduling it, ensure that no backup is running at the same time.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;param&lt;/span&gt;(&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[&lt;span&gt;Parameter&lt;/span&gt;(Mandatory&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$true&lt;/span&gt;)]&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[string]&lt;span&gt;$storageAccount&lt;/span&gt;,&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[&lt;span&gt;Parameter&lt;/span&gt;(Mandatory&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$true&lt;/span&gt;)]&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[string]&lt;span&gt;$storageKey&lt;/span&gt;,&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[&lt;span&gt;Parameter&lt;/span&gt;(Mandatory&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$true&lt;/span&gt;)]&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[string]&lt;span&gt;$blobContainer&lt;/span&gt;,&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[&lt;span&gt;Parameter&lt;/span&gt;(Mandatory&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$true&lt;/span&gt;)]&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;[string]&lt;span&gt;$storageAssemblyPath&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;&lt;span&gt;# Well known Restore Lease ID&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$restoreLeaseId&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;"BAC2BAC2BAC2BAC2BAC2BAC2BAC2BAC2"&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;# Load the storage assembly without locking the file for the duration of the PowerShell session&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$bytes&lt;/span&gt; = &lt;span&gt;[System.IO.File]&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;ReadAllBytes(&lt;span&gt;$storageAssemblyPath&lt;/span&gt;)&lt;/p&gt;

&lt;p&gt;&lt;span&gt;[System.Reflection.Assembly]&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;Load(&lt;span&gt;$bytes&lt;/span&gt;)&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$cred&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;New-Object &lt;/span&gt;&lt;span&gt;'Microsoft.WindowsAzure.Storage.Auth.StorageCredentials' &lt;/span&gt;&lt;span&gt;$storageAccount&lt;/span&gt;, &lt;span&gt;$storageKey&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$client&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;New-Object&lt;/span&gt; &lt;span&gt;'Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient' "https://&lt;/span&gt;&lt;span&gt;$storageAccount&lt;/span&gt;.blob.core.windows.net", &lt;span&gt;$cred&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$container&lt;/span&gt;&lt;span&gt; =&lt;/span&gt; &lt;span&gt;$client&lt;/span&gt;.GetContainerReference(&lt;span&gt;$blobContainer&lt;/span&gt;)&lt;/p&gt;

&lt;p&gt;&lt;span&gt;#list all the blobs&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$allBlobs&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;$container&lt;/span&gt;.ListBlobs()&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$lockedBlobs&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; @()&lt;/p&gt;

&lt;p&gt;&lt;span&gt;# filter blobs that are have Lease Status as "locked"&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;foreach&lt;/span&gt;(&lt;span&gt;$blob&lt;/span&gt;&lt;span&gt; in &lt;/span&gt;&lt;span&gt;$allBlobs&lt;/span&gt;)&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;&lt;span&gt;$blobProperties&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;$blob&lt;/span&gt;.Properties&lt;/p&gt;

&lt;p&gt;if(&lt;span&gt;$blobProperties&lt;/span&gt;.LeaseStatus &lt;span&gt;-eq&lt;/span&gt; &lt;span&gt;"Locked"&lt;/span&gt;)&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span&gt;$lockedBlobs&lt;/span&gt; &lt;span&gt;+=&lt;/span&gt; $blob&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;if (&lt;span&gt;$lockedBlobs&lt;/span&gt;.Count &lt;span&gt;-eq &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;)&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span&gt;Write-Host&lt;/span&gt; &lt;span&gt;" There are no blobs with locked lease status"&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;}&lt;/p&gt;

&lt;p&gt;if(&lt;span&gt;$lockedBlobs&lt;/span&gt;.Count -gt 0)&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span&gt;write-host&lt;/span&gt; &lt;span&gt;"Breaking leases"&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span&gt;foreach&lt;/span&gt;(&lt;span&gt;$blob&lt;/span&gt; &lt;span&gt;in&lt;/span&gt; &lt;span&gt;$lockedBlobs&lt;/span&gt; )&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;try&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:120px;"&gt;&lt;span&gt;$blob&lt;/span&gt;.AcquireLease(&lt;span&gt;$null&lt;/span&gt;, &lt;span&gt;$restoreLeaseId&lt;/span&gt;,&lt;span&gt; $null&lt;/span&gt;, &lt;span&gt;$null&lt;/span&gt;, &lt;span&gt;$null&lt;/span&gt;)&lt;/p&gt;

&lt;p style="padding-left:120px;"&gt;&lt;span&gt;Write-Host&lt;/span&gt; &lt;span&gt;"The lease on&lt;/span&gt; $(&lt;span&gt;$blob&lt;/span&gt;.Uri) &lt;span&gt;is a restore lease"&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;}&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;catch &lt;span&gt;[Microsoft.WindowsAzure.Storage.StorageException]&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:120px;"&gt;if(&lt;span&gt;$&lt;/span&gt;_.Exception.RequestInformation.HttpStatusCode &lt;span&gt;-eq &lt;/span&gt;&lt;span&gt;409&lt;/span&gt;)&lt;/p&gt;

&lt;p style="padding-left:120px;"&gt;{&lt;/p&gt;

&lt;p style="padding-left:150px;"&gt;&lt;span&gt;Write-Host&lt;/span&gt; &lt;span&gt;"The lease on&lt;/span&gt; $(&lt;span&gt;$blob&lt;/span&gt;.Uri) &lt;span&gt;is not a restore lease"&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:120px;"&gt;}&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;}&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;&lt;span&gt;Write-Host&lt;/span&gt; &lt;span&gt;"Breaking lease on&lt;/span&gt; $(&lt;span&gt;$blob&lt;/span&gt;.Uri)&lt;span&gt;"&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:90px;"&gt;&lt;span&gt;$blob&lt;/span&gt;.BreakLease($(&lt;span&gt;New-TimeSpan&lt;/span&gt;), &lt;span&gt;$null&lt;/span&gt;, &lt;span&gt;$null&lt;/span&gt;, &lt;span&gt;$null&lt;/span&gt;) &lt;span&gt;|&lt;/span&gt; &lt;span&gt;Out-Null&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;}&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;}&lt;/p&gt;

&lt;h4&gt;&lt;em&gt;&lt;span&gt;&lt;span style="font-family:Cambria;"&gt;&lt;span style="font-size:small;"&gt;How to test the interrupted backup scenario using the script.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="font-size:small;"&gt;The following is a self-guided walkthrough of creating a locked blob by interrupting a backup process, and using the script to release the lease to successfully delete the blob file that resulted from the interrupted backup.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;The script prompts for storage account name, storage access key, container name, and the path and file name of the Windows Azure Storage Assembly.&amp;nbsp; You can either choose to provide these interactively or you can replace the params () section like this:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;#provide values for parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span&gt;$storageAccount&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;"mycloudstorage"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span&gt;$storageKey&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;"&amp;lt;primary/secondary access key value of the storage account&amp;gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span&gt;$blobContainer&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;"sqlbackup"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span&gt;$storageAssemblyPath&lt;/span&gt;&lt;span&gt; =&lt;/span&gt; &lt;span&gt;"C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\Microsoft.WindowsAzure.Storage.dll"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Note:&amp;nbsp; The storage assembly is stored in the Binn folder of the SQL Server 2012 SP1 CU2 instance. In the above example, it is the default SQL Server instance.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Create a SQL Server Backup to Windows Azure blob storage which completes successfully.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/1817.InterruptedBackup_5F00_Step2.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/1817.InterruptedBackup_5F00_Step2.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Run the PowerShell script.&amp;nbsp; It returns a message that says that there are no locked blobs.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0871.InterruptedBackup_5F00_Step3.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0871.InterruptedBackup_5F00_Step3.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Now run another SQL Server backup but stop it before it can complete to simulate interrupted backup scenario.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/3678.InterruptedBackup_5F00_Step4.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/3678.InterruptedBackup_5F00_Step4.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Check to see if the file was created on the storage account.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0083.InterruptedBackup_5F00_Step5.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0083.InterruptedBackup_5F00_Step5.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Try to overwrite the file – see error:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0118.InterruptedBackup_5F00_Step6.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0118.InterruptedBackup_5F00_Step6.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Try to delete – see error:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/5025.InterruptedBackup_5F00_Step7.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/5025.InterruptedBackup_5F00_Step7.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;Run the PowerShell script again.&amp;nbsp; This time you should see that locked blob is identified, and after checking that it is not a restore lease, the lease is broken.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0724.InterruptedBackup_5F00_Step8.jpg"&gt;&lt;img alt="" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-83-23/0724.InterruptedBackup_5F00_Step8.jpg" border="0"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Try overwriting or deleting the file.&amp;nbsp; It should work! &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="padding-left:60px;"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="font-size:small;"&gt;Here are some ways you can enhance this script to automate this process:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Output the list of all blobs that are locked to a report (ex: excel file).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Break the active leases and report out the list. &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Break the active leases and report out the list, but remove the filter for restore lease.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Delete the blobs with active backup leases and report out the list.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Times New Roman;"&gt;NOTE: &lt;em&gt;If you are running PowerShell 2.0, you may have problems loading the Microsoft WindowsAzure.Storage.dll assembly. We recommend that you upgrade to Powershell 3.0 to solve the issue. You may also use the following workaround for PowerShell 2.0: &lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Times New Roman;"&gt;Create or modify the powershell.exe.config file to load .NET 2.0 and .NET 4.0 assemblies at runtime with the following:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;lt;?xml version="1.0"?&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;lt;configuration&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;nbsp;&amp;lt;startup useLegacyV2RuntimeActivationPolicy="true"&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;nbsp;&amp;lt;supportedRuntime version="v4.0.30319"/&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;nbsp;&amp;lt;supportedRuntime version="v2.0.50727"/&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;nbsp;&amp;lt;/startup&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left:30px;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Courier New;"&gt;&amp;lt;/configuration&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;For more information on best practices, see &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/jj919149.aspx"&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;SQL Server Backup and Restore Best Practices (Windows Azure Blob Storage Service)&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Calibri;font-size:small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
Originally posted at http://blogs.msdn.com/b/sqlosteam/</description></item></channel></rss>