Episodit
-
Guy and Eitan go over Paul Randal's article of "Top Ten SQL Server Performance Tuning Best Practices" (published in last March), and add their own input.
We also talk about considerations of upgrading SQL Server to 2025, and we also learn something new about Temp Table Caching.
Relevant links:
SQL101: Top Ten SQL Server Performance Tuning Best Practices - Paul S. Randal SQL Server 2016 Extended Security Updates: Stay Protected While You Modernize | Microsoft Community Hub Memory-optimized TempDB metadata | Microsoft Learn Limitations of Memory-optimized TempDB metadata | Microsoft Learn SQL Server 2022 addresses GAM and SGAM contention in TempDB Temporary Table Caching Explained SQL Server Temporary Object Caching -
Guy talks about an interesting incident involving performance problems in a virtual environment.
And also, we talk about the SSMS StatisticsParser extension and the question of SSMS extensions in general.
Relevant links:
vmware.com/docs/sql-server-on-vmware-best-practices-guide Hyper-V and SQL Server Best Practices: What We Wish You Knew - SQL Server Consulting - Straight Path Solutions Announcing the SSMS StatisticsParser Extension - Brent Ozar Unlimited® SSMS Extension List Statistics are not collected when creating new table and indexes and loading data after. · Issue #990 · olahallengren/sql-server-maintenance-solution -
Puuttuva jakso?
-
Guy and Eitan discuss a few new things in the latest SSMS update, and Eitan tells about a very peculiar use case involving transactional replication and AlwaysOn Availability Groups, and Guy talks about a use case involving deletion triggers.
Important note: The part about SQL Server 2025 CU4 adding automatic update was an April 1st joke :)
Relevant links:
SSMS 22.5.2 Release Migrate SQL Server to Azure SQL | Microsoft Learn Introducing optimized locking v2 | Microsoft Community Hub SQL Server 2025 CU4 Adds Automatic Updates - Brent Ozar Unlimited® (April 1st joke) Hot Patching SQL Server Engine in Azure SQL Database | Microsoft Community Hub Configure Replication with Always on Availability Groups -
Guy and Eitan discuss several very interesting new features recently announced by Microsoft.
Relevant links for more info:
Stop defragmenting and start living: introducing auto index compaction | Microsoft Community Hub Automatic Index Compaction - SQL Server | Microsoft Learn Database DevOps (preview) in SSMS 22.4.1 | Microsoft Community Hub Manage SQL database schemas in VS Code: Publish dialog and item templates - Azure SQL Dev Corner Publish SQL Database Projects from Visual Studio Code - SQL Server | Microsoft Learn SQL code analysis in VS Code: Configure rules without editing your project file - Azure SQL Dev Corner SQL Projects Roadmap - DacFx Wiki Author Custom Code Analysis Rules - SQL Server | Microsoft Learn -
Guy and Eitan talk about Erik Darling's new monitoring app, which reminds us of similar tools we had experience with long ago.
And, again, it's time to talk about AI. Specifically, a side-effect of it called "The Liar's Dividend".
Relevant links for more information:
Free SQL Server Performance Monitor App by Erik Darling - Brent Ozar Unlimited® Free SQL Server Performance Monitoring | Darling Data The Liar's Dividend - When Nothing Is True, Everything Is Permitted - Eitan Blumin's blog Dear Copilot, can you help me with SQL? - Azure SQL Dev Corner Public Preview - Data Virtualization for Azure SQL Database | Microsoft Community Hub -
Looks like it's that time of the year again, to face the impending death of the DBA role!
Or... Is it?
Guy and Eitan discuss the topic and raise several interesting points you should listen to.
Relevant links:
sqlfingers.com: Death of the DBA (Again) (Reddit thread) -
In this year's first episode of the new year, Guy and Eitan discuss the new Next-gen General Purpose tier of Azure SQL Managed Instance, which is now GA. They also discuss a few interesting customer stories, how they were resolved, and how they're not actually SQL Server's fault.
Relevant links:
Generally Available: Azure SQL Managed Instance Next-gen General Purpose | Microsoft Community Hub The Bitmap Index query plan operator SQL Server on VMware best practices guide How to Save Money on Your SQL Server Hardware -
Matan Yungman is our special host for today, who came especially to talk about his special project called "Rapido", which is capable of automatically tuning SQL queries at scale.
Perhaps there is some inspiration in it for us?
Relevant links:
Matan Yungman | LinkedIn Matan Yungman (@MatanYungman) / X SQL Server 2025 is Now Generally Available | Microsoft Community Hub Intelligent Query Processing - SQL Server | Microsoft Learn -
Guy and Eitan talk about the new preview version of SSMS, application locks, and stupid troubles with TempDB shrinkage.
Relevant links:
Announcing the Release of SQL Server Management Studio 22 Preview 3 | Microsoft Community Hub Release Notes for SQL Server Management Studio (SSMS) 22 Preview 3 Get Started - GitHub Copilot in SQL Server Management Studio (Preview) | Microsoft Learn Overview of the Query Hint Recommendation Tool (Preview) - SQL Server Management Studio | Microsoft Learn Announcing the Release of SSMS 22 Preview 4 | Microsoft Community Hub sp_getapplock (Transact-SQL) - SQL Server | Microsoft Learn microsoft-dbas-club/Utility Scripts/Shrink_Database_File_in_Specified_Increments.sql microsoft-dbas-club/TempDB/TempDB_Sizing_Check_and_Remediation.sql microsoft-dbas-club/TempDB/TempDB Space Utilization Check.sql -
We let a dice roll decide today's topic, and the winner ended up being: Computed Columns with PERSISTED and Indexed Expressions. We give our thoughts about it, best practices, pit falls, and tips.
Relevant links:
SQL Server 2025 Preview RC1: Now Supporting Red Hat Enterprise Linux (RHEL) 10 | Microsoft Community Hub Specify computed columns in a table - SQL Server | Microsoft Learn Indexes on computed columns - SQL Server | Microsoft Learn -
Guy and Eitan discuss several interesting announcements and updates from Microsoft related to SQL Server and VS Code. And also Eitan talks about a weird issue he encountered involving page latch time-outs during DBCC CHECK command.
Please fill out the SQL Server on Linux adoption survey here! Thank you!
Relevant links:
Higher log rate for business critical service tier in Azure SQL MI | Microsoft Community Hub What's New in MSSQL Extension for VS Code v1.35 Accelerating SQL Server 2025 momentum: Announcing the first release candidate - Microsoft SQL Server Blog Error 845 Time-out occurred while waiting for buffer latch type 4 during DBCC CHECK - Eitan Blumin's blog -
Guy and Eitan discuss security-related best practice scripts, and several interesting AI topics.
Relevant links:
microsoft-dbas-club/Security and Compliance/Check_Passwords_SQL_Server_Generated.sql microsoft-dbas-club/Security and Compliance/Best Practice Checks/Invalid_owner_for_system_schema_role_or_database.sql microsoft-dbas-club/Security and Compliance/Windows Group Members.sql Microsoft Introduced AI Integrations for SQL Server. - Brent Ozar Unlimited® What's New in MSSQL Extension for VS Code v1.34 AI coding platform goes rogue during code freeze and deletes entire company database EitanBlumin/sqlcmd-gui: a simple graphical user interface based on SQLCMD for executing parameterized TSQL scripts -
Guy and Eitan discuss Stephen Planck's blog post "Five SQL Server 2025 Enhancements DBAs Will Notice", and add some of their own insights.
Relevant links:
Five SQL Server 2025 Enhancements DBAs Will Notice - SQL Table Talk Configure a flexible automatic failover policy for an availability group - SQL Server Always On | Microsoft Learn Accelerated Database Recovery (ADR) in TempDB | Microsoft Learn Enable and Run tempdb on tmpfs for SQL Server 2025 Preview on Linux - SQL Server | Microsoft Learn Optimized Locking - SQL Server | Microsoft Learn Standard Developer edition in SQL Server 2025 | Microsoft Learn ABORT_QUERY_EXECUTION query hint - public preview | Microsoft Community Hub -
Many announcements and interesting releases came out this past month, so we got a lot to talk about in this episode!
Relevant links:
What's New in SQL Server 2025 - SQL Server | Microsoft Learn SQL Server 2025 - AI ready enterprise database from ground to cloud | Microsoft Community Hub Announcing Public Preview of DiskANN in SQL Server 2025 | Microsoft Community Hub SQL Server 2025: introducing optimized Halloween protection | Microsoft Community Hub SQL Server 2025: introducing tempdb space resource governance | Microsoft Community Hub Unlocking the Power of Regex in SQL Server - Azure SQL Devs' Corner Announcing the General Availability (GA) of JSON data type and JSON aggregates | Microsoft Community Hub Announcing the Public Preview of JSON index in SQL Server 2025 | Microsoft Community Hub ZSTD compression in SQL Server 2025 | Microsoft Community Hub MSSQL Extension for VS Code: GitHub Copilot Preview + UI GA MSSQL Extension for VS Code: Introducing Schema Compare (Preview) - Azure SQL Devs' Corner SQL Server Management Studio (SSMS) 21 is now generally available (GA) | Microsoft Community Hub Copilot in SSMS preview Recently released: Updates to the SqlPackage and the DacFx ecosystem | Microsoft Community Hub Visual Studio 2022 Release Notes | Microsoft Learn Free SQL Managed Instance offer is now generally available Avoid T-SQL anti-patterns with the free T-SQL analysis tool - Azure SQL Devs' Corner -
Guy talks about a recent migration project he was working on to move an on-prem SQL Server to AWS RDS.
Eitan talks about a new AI-related feature in Azure SQL Databases.
And we also discuss the new SNAPSHOT backup T-SQL command in SQL Server 2022.
Relevant links:
Importing and exporting SQL Server databases using native backup and restore - Amazon Relational Database Service Learn about Amazon RDS maintenance window | AWS re:Post LLM Structured Output from Azure SQL Explained - Azure SQL Devs' Corner Create a Transact-SQL snapshot backup - SQL Server | Microsoft Learn -
Guy and Eitan worry about the decline in SQL Server feature quality. But maybe there's something else behind it?
Relevant links:
Improving Azure SQL Database reliability with accelerated database recovery in tempdb | Microsoft Community Hub What the Decline of Sql Server Quality means for Developers and DBAs SLA for SQL Database | Azure AI will eliminate DBA Jobs faster than you think -
Guy and Eitan discuss a few interesting topics. Including a fun new game called "SQL Noir", how to implement statistical clustering model in SQL, about surrogate and natural keys, and the recently announced deprecation of Azure Data Studio.
Relevant links:
SQL Noir - A Detective SQL Game How to Write a Recursive CTE in SQL Server | LearnSQL.com Azure Data Studio Retirement - Azure SQL Devs' Corner Relational Databases - Surrogate Keys and Logical Duplicates (by Ami Levin) -
Guy and Eitan answer an interesting question from the forum regarding the logic of NOT BETWEEN.
And also, checking out the SQL Squid Game, discussing SQL Audit, and sharing some tips for SSMS.
Relevant links:
SQL Squid Game SQL Server Audit (Database Engine) - SQL Server | Microsoft Learn microsoft-dbas-club/Maintenance/SQLVersionUpdatesTell us how you did and whether you survived the SQL Squid Game! 😉
-
Guy and Eitan talk about SQL Server 2025 (well, they try to, at least), and its various interesting upcoming features.
Relevant links:
Announcing SQL Server 2025 – SQLServerCentral What's New in SQL Server 2025 - Brent Ozar Unlimited® Optimized Locking - SQL Server | Microsoft Learn SQLBits is Coming Back to London in June 2025! - Brent Ozar Unlimited® -
Guy and Eitan go over the most popular sessions released from the SQL PASS archive of 2023, and discuss some other topics.
Relevant links:
Announcing Microsoft SQL Server 2025: Enterprise AI-ready database from ground to cloud - Microsoft SQL Server Blog Sessions Archive for 2023 - PASS Data Community Summit Resolving and Preventing Deadlocks in SQL Server SSMS v21: Dark Mode, Git, Vertical Tabs, and More - Brent Ozar Unlimited® Copilot in SSMS is Kinda Like IE in SSMS - Brent Ozar Unlimited® - Näytä enemmän