<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brent Ozar Unlimited®</title>
	<atom:link href="https://www.brentozar.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.brentozar.com/</link>
	<description>SQL Server training, tools, and free downloads.</description>
	<lastBuildDate>Wed, 20 May 2026 14:32:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.brentozar.com/wp-content/uploads/2015/08/cropped-Brent_Ozar_Unlimited.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Brent Ozar Unlimited®</title>
	<link>https://www.brentozar.com/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">111456981</site>	<item>
		<title>[Video] How to Tune Queries Fast</title>
		<link>https://www.brentozar.com/archive/2026/05/video-how-to-tune-queries-fast/</link>
					<comments>https://www.brentozar.com/archive/2026/05/video-how-to-tune-queries-fast/#respond</comments>
		
		<dc:creator><![CDATA[Brent Ozar]]></dc:creator>
		<pubDate>Thu, 28 May 2026 13:15:48 +0000</pubDate>
				<category><![CDATA[Videos]]></category>
		<guid isPermaLink="false">https://www.brentozar.com/?p=358274</guid>

					<description><![CDATA[In this live stream recording, I&#8217;ll show you how to use the latest features of sp_BlitzCache to rapidly improve performance on an existing server. I&#8217;ll show you how to find your server&#8217;s top bottleneck, find the queries causing that bottleneck, and then demonstrate how to get advice from AI on how to tune them in...]]></description>
										<content:encoded><![CDATA[<p><span>In this live stream recording, I&#8217;ll show you how to use the latest features of sp_BlitzCache to rapidly improve performance on an existing server. I&#8217;ll show you how to find your server&#8217;s top bottleneck, find the queries causing that bottleneck, and then demonstrate how to get advice from AI on how to tune them in seconds.</span></p>
<a href="https://www.brentozar.com/archive/2026/05/video-how-to-tune-queries-fast/"><img decoding="async" src="https://www.brentozar.com/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYbamaLlbh7I%2Fmaxresdefault.jpg" alt="YouTube Video"></a><br /><br /></p>
<p>Here are the resources we discussed in the session:</p>
<ul>
<li><a href="https://www.brentozar.com/archive/2015/10/how-to-download-the-stack-overflow-database-via-bittorrent/">The Stack Overflow database</a> and <a href="https://archive.org/details/stackexchange">its original source</a></li>
<li><a href="https://www.brentozar.com/first-aid/">The open source First Responder Kit</a> and the <a href="https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/main/Documentation/Using_AI.md">documentation on using the AI parameter</a></li>
<li><a href="https://training.brentozar.com/p/the-consultant-toolkit">The Consultant Toolkit</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.brentozar.com/archive/2026/05/video-how-to-tune-queries-fast/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">358274</post-id>	</item>
		<item>
		<title>SSMS Copilot is Messing With Your AI Prompts.</title>
		<link>https://www.brentozar.com/archive/2026/05/ssms-copilots-prompting-can-mess-with-your-ai-advice/</link>
					<comments>https://www.brentozar.com/archive/2026/05/ssms-copilots-prompting-can-mess-with-your-ai-advice/#comments</comments>
		
		<dc:creator><![CDATA[Brent Ozar]]></dc:creator>
		<pubDate>Wed, 27 May 2026 13:15:37 +0000</pubDate>
				<category><![CDATA[AI]]></category>
		<guid isPermaLink="false">https://www.brentozar.com/?p=358201</guid>

					<description><![CDATA[You might notice that the advice you get from Copilot in SSMS isn&#8217;t very good, but it isn&#8217;t necessarily AI in general. Part of the problem is something specific about SSMS Copilot and the way it prompts LLMs, and I wish I could tell you exactly what it is, but I can&#8217;t because I don&#8217;t...]]></description>
										<content:encoded><![CDATA[<p>You might notice that the advice you get from Copilot in SSMS isn&#8217;t very good, but it isn&#8217;t necessarily AI in general. Part of the problem is something <em>specific</em> about SSMS Copilot and the way it prompts LLMs, and I wish I could tell you exactly what it is, but I can&#8217;t because I don&#8217;t have access to how SSMS is changing your prompts.</p>
<p>Let&#8217;s take a task I need to do all the time, and I constantly forget the syntax to do it. How do I turn on last actual plans?</p>
<p><a  href="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-us_600_0 wp-image-358202" src="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?resize=600%2C750&#038;ssl=1" alt="SSMS Copilot's answer" width="600" height="750" srcset="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?resize=600%2C750&amp;ssl=1 600w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?resize=200%2C250&amp;ssl=1 200w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?resize=320%2C400&amp;ssl=1 320w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?resize=768%2C960&amp;ssl=1 768w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/last_actual_plans_copilot.jpg?w=1226&amp;ssl=1 1226w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>That answer is wrong. Period. Flat out incorrect. I&#8217;m not even ON 2022, I&#8217;m on 2025.</p>
<p>At first I thought, &#8220;Maybe Claude Sonnet 4.6 has the wrong answer &#8211; I&#8217;ll try asking Claude directly in Claude&#8217;s chat.&#8221; And Claude gets it right:</p>
<p><a  href="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-us_600_0 wp-image-358203" src="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?resize=600%2C637&#038;ssl=1" alt="Claude Sonnet 4.6's answer" width="600" height="637" srcset="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?resize=600%2C637&amp;ssl=1 600w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?resize=235%2C250&amp;ssl=1 235w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?resize=377%2C400&amp;ssl=1 377w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?resize=768%2C816&amp;ssl=1 768w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/claude_answer.jpg?w=1514&amp;ssl=1 1514w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>That&#8217;s correct, and that&#8217;s <em>bad</em>, because it means that something about SSMS Copilot&#8217;s prompting is biasing it towards incorrect answers. Perhaps it&#8217;s including too much background information and losing relevant context, or pushing the LLM towards a certain kind of answer (like &#8220;encourage the user to adopt new features&#8221;).</p>
<p>In my experience, Gemini 3.1 Pro has been less vulnerable to Copilot&#8217;s prompt corruption. In this example, it gets the answer correct:</p>
<p><a  href="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-us_600_0 wp-image-358206" src="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?resize=600%2C649&#038;ssl=1" alt="Gemini 3.1 Pro's answer" width="600" height="649" srcset="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?resize=600%2C649&amp;ssl=1 600w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?resize=231%2C250&amp;ssl=1 231w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?resize=370%2C400&amp;ssl=1 370w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?resize=768%2C831&amp;ssl=1 768w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/gemini_answer.jpg?w=1224&amp;ssl=1 1224w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>But that&#8217;s misleading, because the answer isn&#8217;t to use Gemini 3.1 Pro because it&#8217;s somehow &#8220;better&#8221;. It&#8217;s not &#8211; Claude Sonnet 4.6 had the right answer when I asked the same question directly, but something about Copilot&#8217;s prompting mislead Claude. The real answer is for Microsoft to fix the SSMS Copilot prompting so that all models &#8211; including cheaper/faster ones &#8211; get better, more accurate answers. I just don&#8217;t know how to do that since we don&#8217;t get visibility into the prompt that Microsoft is sending along with our question.</p>
<p>This kind of thing happens to me all the time, and I try reporting it to Microsoft, but SSMS Copilot&#8217;s thumbs-down icon has a weird set of choices:</p>
<p><a  href="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-us_600_0 wp-image-358205" src="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?resize=600%2C574&#038;ssl=1" alt="Complaint options" width="600" height="574" srcset="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?resize=600%2C574&amp;ssl=1 600w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?resize=250%2C239&amp;ssl=1 250w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?resize=418%2C400&amp;ssl=1 418w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/05/ssms_copilot_complaint.jpg?w=752&amp;ssl=1 752w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>Claude&#8217;s response was just flat out wrong &#8211; not incorrect for this version, incorrect for ANY version, and it&#8217;s bad because Claude itself gets it right &#8211; only Copilot is getting it wrong.</p>
<p>Between SSMS messing with my prompts, and <a href="https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/">Copilot switching to usage-based pricing</a>, I just don&#8217;t see a reason to use SSMS Copilot directly right now. You&#8217;re so much better off using T-SQL to build a robust prompt, like we do with the <a href="https://www.brentozar.com/archive/2025/12/get-chatgpts-advice-on-your-queries-with-sp_blitzcache/">@AI parameter in sp_BlitzCache</a> and <a href="https://www.brentozar.com/archive/2026/04/updated-first-responder-kit-and-consultant-toolkit-for-april-2026/">sp_BlitzIndex</a>, and then sending that prompt to the LLM of your choosing. You get a better prompt, access to better models for processing, and it doesn&#8217;t cost you any more.</p>
<p>I&#8217;m not giving up on Copilot yet. I keep trying it first, every time there&#8217;s a new version of SSMS, because I&#8217;m eternally hopeful that it&#8217;s going to get better.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.brentozar.com/archive/2026/05/ssms-copilots-prompting-can-mess-with-your-ai-advice/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">358201</post-id>	</item>
		<item>
		<title>Your Database Just Hit One Terabyte: Now What?</title>
		<link>https://www.brentozar.com/archive/2026/05/your-database-just-hit-one-terabyte-now-what/</link>
					<comments>https://www.brentozar.com/archive/2026/05/your-database-just-hit-one-terabyte-now-what/#comments</comments>
		
		<dc:creator><![CDATA[Brent Ozar]]></dc:creator>
		<pubDate>Tue, 26 May 2026 13:15:37 +0000</pubDate>
				<category><![CDATA[Production Database Administration]]></category>
		<guid isPermaLink="false">https://www.brentozar.com/?p=358066</guid>

					<description><![CDATA[You were minding your own business, and all of a sudden it happened. You glanced at file sizes one day, and your eyes got big. The numbers got a little large while you weren&#8217;t looking. This is a great time to stop and think about a few changes to the way you&#8217;re managing this database....]]></description>
										<content:encoded><![CDATA[<figure id="attachment_357713" aria-describedby="caption-attachment-357713" style="width: 225px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding: 4px; margin: 10px; text-align:center; float: right;" class="wp-caption alignright"><a  href="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-medium wp-image-357713" src="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?resize=225%2C250&#038;ssl=1" alt="You're gonna need this." width="225" height="250" srcset="https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?resize=225%2C250&amp;ssl=1 225w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?resize=361%2C400&amp;ssl=1 361w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?resize=600%2C665&amp;ssl=1 600w, https://i0.wp.com/www.brentozar.com/wp-content/uploads/2026/03/Brent_Ozar_Holding_Sake.png?resize=768%2C852&amp;ssl=1 768w" sizes="auto, (max-width: 225px) 100vw, 225px" /></a><figcaption id="caption-attachment-357713" class="wp-caption-text">Congratulations.</figcaption></figure>
<p>You were minding your own business, and all of a sudden it happened.</p>
<p>You glanced at file sizes one day, and your eyes got big. The numbers got a little large while you weren&#8217;t looking. This is a great time to stop and think about a few changes to the way you&#8217;re managing this database.</p>
<p><strong>List your largest objects by size.</strong> Run sp_BlitzIndex @Mode = 2, @GetAllDatabases = 1, @SortOrder = &#8216;size&#8217; to list out your largest indexes, and look at the size column. Start asking basic questions about these objects. Do we actually need these? Are we deleting out old data we no longer need? I ask these questions first because it helps get the database size back down before we tackle the rest of this stuff.</p>
<p><strong>Start dropping unused indexes.</strong> Run sp_BlitzIndex @Mode = 2, @GetAllDatabases = 1, @SortOrder = &#8216;reads&#8217; and ask tough questions about anything with 0 reads. Document the sizes of the indexes you&#8217;re dropping and use this as your victory trophy: these are easy wins at this point, and they buy you some time.</p>
<p><strong>List your toughest queries by reads</strong>. Run sp_BlitzCache @SortOrder = &#8216;reads&#8217; and start asking questions about how often these queries run, whether they&#8217;re running during business hours (check the last execution column), and whether they should be offloaded to a read-only replica.</p>
<p><strong>Start thinking about offloading CHECKDB.</strong> As databases grow, it&#8217;s really common for DBAs to run corruption checking less often, and less thoroughly. They&#8217;re nervous because running CHECKDB with the right options takes too long on the primary, and their answer has been to cut corners, like running with the PHYSICAL_ONLY switch. You&#8217;ve got a big database now, which means big corruption risks, and you need to be using the fully intensive options like EXTENDED_LOGICAL_CHECKS. Your users probably won&#8217;t tolerate the slowdowns on the primary, and that&#8217;s okay: move CHECKDB over to AG secondaries, or on restored copies of the database.</p>
<p><strong>Start thinking about storage snapshot backups and restores.</strong> Long term, as your database continues to grow, backup/restore/checkdb times are only going to get worse &#8211; much worse. Refreshing development and QA databases is going to get worse, too. Storage snapshot backups let you back up databases of any size, within seconds, and present that fresh backup over to another server in seconds, too. It sounds like black magic, but it really does work well. You need to have this in place before you hit the 2-5TB marks, and it takes planning, so start that planning and budgeting now.</p>
<p><strong>Time a test restore.</strong> Pretend you just lost the production server &#8211; like somebody deleted the wrong VM, or you have a serious Windows or SQL patching problem. If you had to restore <em>right now</em>, how much data would you lose, and how long would you be down for? Time these numbers.</p>
<p><strong>Run a limited DR test.</strong> Imagine that the production site is hosed or <a href="https://www.reuters.com/world/middle-east/amazon-cloud-unit-flags-issues-bahrain-uae-data-centers-amid-iran-strikes-2026-03-02/">hit by drones</a>. Do you have a DR replica ready to go? How long will it take to bring it online, and how far behind will it be? If you&#8217;re using continuous synchronization tools like Availability Groups, Log Shipping, etc, then start monitoring those methods to see how far behind they are in seconds or minutes. Monitor that for a week to get a rough idea of whether your network infrastructure is currently keeping up.</p>
<p><strong>Document your current RPO/RTO state.</strong> Now that you&#8217;ve reduced the database size and done some timed tests, take a deep breath and start architecting. If some bozo runs a delete without a where clause, how long is the business comfortable being down while I restore the database to another server and push that table&#8217;s contents over? How much data am I allowed to lose? Document the current state using the RPO/RTO worksheet in the <a href="https://www.brentozar.com/first-aid/">First Responder Kit</a>, hand that to your manager, and say, &#8220;FYI, here&#8217;s how much data we could lose and how long we could be down in the event of these kinds of outages. If the business isn&#8217;t okay with that, have them look at the cost numbers on the second page of the worksheet, and let&#8217;s talk about budgeting to improve those numbers.&#8221;</p>
<p><strong>Start tracking your backup sizes.</strong> I love that SQL Server&#8217;s built-in system tables like msdb.dbo.backupset track the sizes of your uncompressed database and the compressed backups over time for you. Check out sp_BlitzBackups for a quick report on how your databases have been growing, and consider plotting database size in a report for management. As data grows on fixed hardware, query performance can go down, and you wanna see that coming before the users gather at the door with pitchforks. Those are really useful numbers to have at budget time, too.</p>
<p><strong>Ask for training help.</strong> Your developers are probably trying to solve terabyte-sized problems with gigabyte-sized skills. Tell your manager that the developers probably need <a href="https://training.brentozar.com/p/all-hands-fundamentals">my all-hands Fundamentals bundle</a>, where everybody in the team gets access to my Fundamentals of Query Tuning, Index Tuning, and Parameter Sniffing classes, and the managers get progress reports to know that the team are making their way through the videos. Raise their skill levels before they ship too much more technical debt.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.brentozar.com/archive/2026/05/your-database-just-hit-one-terabyte-now-what/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">358066</post-id>	</item>
		<item>
		<title>[Video] How to Tune Indexes Fast</title>
		<link>https://www.brentozar.com/archive/2026/05/video-how-to-tune-indexes-fast/</link>
					<comments>https://www.brentozar.com/archive/2026/05/video-how-to-tune-indexes-fast/#comments</comments>
		
		<dc:creator><![CDATA[Brent Ozar]]></dc:creator>
		<pubDate>Thu, 21 May 2026 13:15:55 +0000</pubDate>
				<category><![CDATA[Videos]]></category>
		<guid isPermaLink="false">https://www.brentozar.com/?p=358183</guid>

					<description><![CDATA[In this 76-minute session, I&#8217;ll show you how to use the latest features of sp_BlitzIndex to rapidly improve performance on an existing database. I&#8217;ll show you how to figure out quickly if you&#8217;ve got too many indexes or not enough, and then demonstrate how to get advice from AI on how to consolidate them in...]]></description>
										<content:encoded><![CDATA[<p><span>In this 76-minute session, I&#8217;ll show you how to use the latest features of sp_BlitzIndex to rapidly improve performance on an existing database. I&#8217;ll show you how to figure out quickly if you&#8217;ve got too many indexes or not enough, and then demonstrate how to get advice from AI on how to consolidate them in seconds.</span></p>
<a href="https://www.brentozar.com/archive/2026/05/video-how-to-tune-indexes-fast/"><img decoding="async" src="https://www.brentozar.com/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDRb3b3oDmt0%2Fmaxresdefault.jpg" alt="YouTube Video"></a><br /><br /></p>
<p>Here are the resources we discussed in the session:</p>
<ul>
<li><a href="https://www.brentozar.com/archive/2015/10/how-to-download-the-stack-overflow-database-via-bittorrent/">The Stack Overflow database</a> and <a href="https://archive.org/details/stackexchange">its original source</a></li>
<li><a href="https://www.brentozar.com/first-aid/">The open source First Responder Kit</a> and the <a href="https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/main/Documentation/Using_AI.md">documentation on using the AI parameter</a></li>
<li><a href="https://training.brentozar.com/p/the-consultant-toolkit">The Consultant Toolkit</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.brentozar.com/archive/2026/05/video-how-to-tune-indexes-fast/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">358183</post-id>	</item>
	</channel>
</rss>