📄 Page
1
(This page has no text content)
📄 Page
2
SQL Server 2025 Unveiled The AI-Ready Enterprise Database with Microsoft Fabric Integration Bob Ward Foreword by Shireesh Thota
📄 Page
3
SQL Server 2025 Unveiled: The AI-Ready Enterprise Database with Microsoft Fabric Integration ISBN-13 (pbk): 979-8-8688-1846-2 ISBN-13 (electronic): 979-8-8688-1847-9 https://doi.org/10.1007/979-8-8688-1847-9 Copyright © 2025 by Bob Ward This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Shaul Elson Development Editor: Laura Berendson Coordinating Editor: Gryffin Winkler Cover image designed by fpvproductions on freepik (www.freepik.com) Distributed to the book trade worldwide by Springer Science+Business Media New York, 1 New York Plaza, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a Delaware LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback, or audio rights, please e-mail bookpermissions@springernature.com. Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub. For more detailed information, please visit https://www.apress.com/gp/services/ source-code. If disposing of this product, please recycle the paper Bob Ward North Richland Hills, TX, USA
📄 Page
4
This book is dedicated to all the Microsoft employees and members of the community that brought together this amazing release on such a short runway. This has been one of the best releases I’ve had the privilege to be a part of in my own small way.
📄 Page
5
v About the Author ��������������������������������������������������������������������������������������������������� xiii About the Technical Reviewer ���������������������������������������������������������������������������������xv Acknowledgments �������������������������������������������������������������������������������������������������xvii Foreword ����������������������������������������������������������������������������������������������������������������xix Introduction ������������������������������������������������������������������������������������������������������������xxi Chapter 1: The AI-Ready Enterprise Database ���������������������������������������������������������� 1 Project Kauai Is Born ��������������������������������������������������������������������������������������������������������������������� 1 The Move to Announce SQL Server 2025 �������������������������������������������������������������������������������������� 3 The Acceleration to Launch Public Preview ���������������������������������������������������������������������������������� 6 Finally, Anyone Can Download It ���������������������������������������������������������������������������������������������� 7 Summer Momentum and General Availability ����������������������������������������������������������������������� 11 Foundations �������������������������������������������������������������������������������������������������������������������������������� 14 Introducing SQL Server 2025 ������������������������������������������������������������������������������������������������������ 15 Areas of Innovation ���������������������������������������������������������������������������������������������������������������� 15 Meat and Potatoes ����������������������������������������������������������������������������������������������������������������� 16 Powering SQL Server ������������������������������������������������������������������������������������������������������������� 17 A New Wave of Tools ������������������������������������������������������������������������������������������������������������������� 18 The New SSMS ���������������������������������������������������������������������������������������������������������������������� 18 Visual Studio Code and the mssql Extension ������������������������������������������������������������������������� 20 The SQL Server 2025 Platform Architecture ������������������������������������������������������������������������������� 21 Customer Stories ������������������������������������������������������������������������������������������������������������������������ 22 Resources for You ����������������������������������������������������������������������������������������������������������������������� 23 Tradition Meets Innovation ���������������������������������������������������������������������������������������������������������� 24 Table of Contents
📄 Page
6
vi Chapter 2: Ready, Set, Go ���������������������������������������������������������������������������������������� 25 Who Should Read This Chapter? ������������������������������������������������������������������������������������������������� 25 How to Install SQL Server 2025 �������������������������������������������������������������������������������������������������� 26 Prerequisites ������������������������������������������������������������������������������������������������������������������������� 27 What Is Different for SQL Server 2025? ��������������������������������������������������������������������������������� 27 Other Installation Methods ���������������������������������������������������������������������������������������������������� 30 Deploying on Other Platforms ����������������������������������������������������������������������������������������������������� 30 Side-by-Side and Multi-instance Installations ���������������������������������������������������������������������������� 31 How to Upgrade to SQL Server 2025 ������������������������������������������������������������������������������������������ 32 The Importance of dbcompat ������������������������������������������������������������������������������������������������������ 32 Configuration������������������������������������������������������������������������������������������������������������������������������� 33 Easy to Install and Upgrade �������������������������������������������������������������������������������������������������������� 34 Chapter 3: AI Fundamentals ����������������������������������������������������������������������������������� 35 The Path for AI Applications �������������������������������������������������������������������������������������������������������� 36 The Path �������������������������������������������������������������������������������������������������������������������������������� 36 You Control AI ������������������������������������������������������������������������������������������������������������������������ 37 Knowledge Is the Key ������������������������������������������������������������������������������������������������������������ 38 Security, Scalability, Quality ��������������������������������������������������������������������������������������������������� 38 Prompts and Retrieval Augmented Generation (RAG) ����������������������������������������������������������������� 39 AI Models ������������������������������������������������������������������������������������������������������������������������������������ 42 AI Model Types ����������������������������������������������������������������������������������������������������������������������� 42 AI Model Sizes ����������������������������������������������������������������������������������������������������������������������� 45 Where Do I Get AI Models and Access Them? ����������������������������������������������������������������������� 46 Let’s REST with AI ����������������������������������������������������������������������������������������������������������������������� 50 Prerequires for the Examples ������������������������������������������������������������������������������������������������ 50 REST with AI Using Ollama ���������������������������������������������������������������������������������������������������� 52 Secure REST with HTTPS ������������������������������������������������������������������������������������������������������� 53 Add Some Vector Search ������������������������������������������������������������������������������������������������������������� 54 Vector Search and Your Data ������������������������������������������������������������������������������������������������� 54 Use REST with Ollama to Do a Vector Search ������������������������������������������������������������������������ 57 Table of ConTenTs
📄 Page
7
vii AI Tools and Model Context Protocol ������������������������������������������������������������������������������������������� 58 AI Tools ���������������������������������������������������������������������������������������������������������������������������������� 58 Model Context Protocol (MCP) ����������������������������������������������������������������������������������������������� 64 AI Agents ������������������������������������������������������������������������������������������������������������������������������������� 66 What About Quality? �������������������������������������������������������������������������������������������������������������������� 68 What Have We Learned ��������������������������������������������������������������������������������������������������������������� 69 Launch SQL Server 2025 AI Built-In �������������������������������������������������������������������������������������������� 70 Chapter 4: AI Built-In ���������������������������������������������������������������������������������������������� 71 What Are We Trying to Solve ������������������������������������������������������������������������������������������������������� 72 Smarter Searching ���������������������������������������������������������������������������������������������������������������� 72 Support Centralized Vector Searching ����������������������������������������������������������������������������������� 72 Provide Building Blocks ��������������������������������������������������������������������������������������������������������� 73 Promote Security and Scalability ������������������������������������������������������������������������������������������ 73 Overcome Complexity ������������������������������������������������������������������������������������������������������������ 73 What Is AI-Ready? ����������������������������������������������������������������������������������������������������������������������� 73 Vector Data Type �������������������������������������������������������������������������������������������������������������������� 74 Model Definitions ������������������������������������������������������������������������������������������������������������������� 75 Embedding Generation ���������������������������������������������������������������������������������������������������������� 80 Text Chunking ������������������������������������������������������������������������������������������������������������������������ 80 Searching with VECTOR_DISTANCE ��������������������������������������������������������������������������������������� 81 Vector Index ��������������������������������������������������������������������������������������������������������������������������� 82 Learn More ���������������������������������������������������������������������������������������������������������������������������� 84 Vector Architecture ���������������������������������������������������������������������������������������������������������������� 85 Why Enterprise? �������������������������������������������������������������������������������������������������������������������������� 88 You Control All Access with SQL Security ������������������������������������������������������������������������������ 88 You Control Which AI Models to Use �������������������������������������������������������������������������������������� 88 AI Models Ground and/or Cloud Isolated from SQL ��������������������������������������������������������������� 89 Use RLS, TDE, and DDM ��������������������������������������������������������������������������������������������������������� 89 Track Everything with SQL Server Auditing ��������������������������������������������������������������������������� 89 Ledger for Chat History and Feedback ���������������������������������������������������������������������������������� 89 Table of ConTenTs
📄 Page
8
viii Getting Started with Vectors ������������������������������������������������������������������������������������������������������� 89 Prerequisites ������������������������������������������������������������������������������������������������������������������������� 90 Try Existing Search Methods ������������������������������������������������������������������������������������������������� 91 Step 1: Create a Model Definition ������������������������������������������������������������������������������������������ 92 Step 2: Create a Table to Store Vectors and Generate Embeddings �������������������������������������� 93 Step 3: Create a Vector Index ������������������������������������������������������������������������������������������������ 97 Steps 4–7: Use a Prompt for a Vector Search ������������������������������������������������������������������������ 97 Extending to Azure AI Foundry �������������������������������������������������������������������������������������������������� 102 Other AI Model Options ������������������������������������������������������������������������������������������������������������� 108 OpenAI Compatible �������������������������������������������������������������������������������������������������������������� 108 Local ONNX Support ������������������������������������������������������������������������������������������������������������ 109 SQL Server 2025 AI Futures ������������������������������������������������������������������������������������������������������ 110 Secure and Scalable AI with SQL Server 2025 ������������������������������������������������������������������������� 110 Chapter 5: Developers, Developers, Developers ��������������������������������������������������� 113 The Best in a Decade ���������������������������������������������������������������������������������������������������������������� 113 Developer Edition ���������������������������������������������������������������������������������������������������������������� 116 JSON ����������������������������������������������������������������������������������������������������������������������������������������� 116 A New, Better Way ��������������������������������������������������������������������������������������������������������������� 117 Example: Using the New json Data Type and Index ������������������������������������������������������������� 119 T-SQL Love �������������������������������������������������������������������������������������������������������������������������������� 125 Regular Expressions (RegEx) with T-SQL ����������������������������������������������������������������������������� 125 Other T-SQL Enhancements ������������������������������������������������������������������������������������������������� 130 Change Event Streaming (CES) ������������������������������������������������������������������������������������������������� 133 Comparing CES, CDC, and CT ����������������������������������������������������������������������������������������������� 134 How Does It Work ���������������������������������������������������������������������������������������������������������������� 135 FAQ and Limits��������������������������������������������������������������������������������������������������������������������� 136 Example: Solving Shipping Problems for Contoso ��������������������������������������������������������������� 137 CES Setting the Path Forward ��������������������������������������������������������������������������������������������� 147 REST API ������������������������������������������������������������������������������������������������������������������������������������ 147 sp_invoke_external_rest_endpoint ������������������������������������������������������������������������������������� 149 Scenarios to Use REST �������������������������������������������������������������������������������������������������������� 154 Table of ConTenTs
📄 Page
9
ix Using REST for AI to Complete the RAG Story ��������������������������������������������������������������������� 155 The Modern SQL Developer ������������������������������������������������������������������������������������������������������ 162 Chapter 6: Connecting to the Cloud with Azure Arc ��������������������������������������������� 165 What Is Azure Arc? �������������������������������������������������������������������������������������������������������������������� 166 SQL Server Enabled by Azure Arc���������������������������������������������������������������������������������������������� 168 What Is the Azure Extension for SQL Server? ���������������������������������������������������������������������� 168 Enabling Hybrid Scenarios with Azure Arc �������������������������������������������������������������������������� 169 Getting Started with Azure Arc �������������������������������������������������������������������������������������������� 172 Example: Deploying Azure Arc Through SQL Server 2025 Setup ����������������������������������������� 173 Securing SQL Server with Microsoft Entra �������������������������������������������������������������������������� 182 Example: Connecting to SQL Server with Microsoft Entra ��������������������������������������������������� 182 Go Passwordless with Microsoft Entra Managed Identity ��������������������������������������������������� 186 Example: Secure Access to Azure OpenAI with a Managed Identity ������������������������������������ 188 Connecting SQL to the World ���������������������������������������������������������������������������������������������������� 190 Chapter 7: The Core Engine of SQL Server 2025 ��������������������������������������������������� 191 What’s New for the Engine? ������������������������������������������������������������������������������������������������������ 192 Security ������������������������������������������������������������������������������������������������������������������������������������� 193 Microsoft Entra and Managed Identity �������������������������������������������������������������������������������� 193 Security Cache �������������������������������������������������������������������������������������������������������������������� 195 Encryption and Password Enhancements ��������������������������������������������������������������������������� 196 Performance ����������������������������������������������������������������������������������������������������������������������������� 199 Optimized Locking ��������������������������������������������������������������������������������������������������������������� 199 tempdb Resource Governance �������������������������������������������������������������������������������������������� 210 Other tempdb Enhancements ���������������������������������������������������������������������������������������������� 221 Query Optimization and Execution �������������������������������������������������������������������������������������� 223 Query Management ������������������������������������������������������������������������������������������������������������� 227 Availability ��������������������������������������������������������������������������������������������������������������������������������� 231 Always On Availability Groups (AGs) ������������������������������������������������������������������������������������ 231 Backup/Restore ������������������������������������������������������������������������������������������������������������������� 245 Hidden Gems ����������������������������������������������������������������������������������������������������������������������������� 249 Table of ConTenTs
📄 Page
10
x ABORT_QUERY_EXECUTION ������������������������������������������������������������������������������������������������� 249 In-Memory OLTP ������������������������������������������������������������������������������������������������������������������ 253 PolyBase ������������������������������������������������������������������������������������������������������������������������������ 253 Diagnostics �������������������������������������������������������������������������������������������������������������������������� 255 The Fastest Database on the Planet ������������������������������������������������������������������������������������ 258 Always Tuning the Engine ��������������������������������������������������������������������������������������������������������� 259 Chapter 8: Integrating SQL Server 2025 with Microsoft Fabric ���������������������������� 261 An Introduction to Microsoft Fabric ������������������������������������������������������������������������������������������ 262 Data Factory ������������������������������������������������������������������������������������������������������������������������ 263 Analytics ������������������������������������������������������������������������������������������������������������������������������ 263 Databases ���������������������������������������������������������������������������������������������������������������������������� 263 Real-Time Intelligence (RTI) ������������������������������������������������������������������������������������������������ 263 Power BI ������������������������������������������������������������������������������������������������������������������������������ 263 AI ����������������������������������������������������������������������������������������������������������������������������������������� 264 OneLake ������������������������������������������������������������������������������������������������������������������������������� 264 Governance�������������������������������������������������������������������������������������������������������������������������� 264 Services Working Together �������������������������������������������������������������������������������������������������� 265 Unified Interfaces ���������������������������������������������������������������������������������������������������������������� 265 Capacity Model �������������������������������������������������������������������������������������������������������������������� 265 Mirroring SQL Everywhere to Fabric ����������������������������������������������������������������������������������������� 266 Let’s Start with Azure ���������������������������������������������������������������������������������������������������������� 266 Mirroring SQL Everywhere��������������������������������������������������������������������������������������������������� 267 Mirroring SQL Server 2025 to Fabric ���������������������������������������������������������������������������������������� 269 How It Works ����������������������������������������������������������������������������������������������������������������������� 269 Considerations and Limits ��������������������������������������������������������������������������������������������������� 272 Example: Mirror a SQL Server 2025 Database to Fabric ����������������������������������������������������� 273 Going Further with Microsoft Fabric ����������������������������������������������������������������������������������������� 288 Mirroring Azure SQL Database �������������������������������������������������������������������������������������������� 288 Deploying SQL Database in Fabric �������������������������������������������������������������������������������������� 289 Unifying the Data with the SQL Analytics Endpoint ������������������������������������������������������������� 289 Creating a Lakehouse ���������������������������������������������������������������������������������������������������������� 292 Table of ConTenTs
📄 Page
11
xi Unified Data in the Lakehouse ��������������������������������������������������������������������������������������������� 293 I’m No Guy in a Cube ����������������������������������������������������������������������������������������������������������� 296 Using Fabric Data Agents ���������������������������������������������������������������������������������������������������� 299 Good ‘Ol SSMS to the Rescue ���������������������������������������������������������������������������������������������� 300 SQL Is Always Part of Any Data Story ���������������������������������������������������������������������������������������� 301 Chapter 9: Microsoft SQL Ground to Cloud to Fabric �������������������������������������������� 303 Develop Once, Deploy Anywhere ����������������������������������������������������������������������������������������������� 303 SQL Server 2025 ����������������������������������������������������������������������������������������������������������������������� 304 AI Built-In ����������������������������������������������������������������������������������������������������������������������������� 305 Developer Modern Data Applications ���������������������������������������������������������������������������������� 305 Integrate Your Data with Fabric ������������������������������������������������������������������������������������������� 306 Secure by Default ���������������������������������������������������������������������������������������������������������������� 306 Mission-Critical Engine �������������������������������������������������������������������������������������������������������� 306 Foundations ������������������������������������������������������������������������������������������������������������������������� 307 Azure SQL���������������������������������������������������������������������������������������������������������������������������������� 307 SQL Server in Azure Virtual Machines ��������������������������������������������������������������������������������� 308 Azure SQL Managed Instance ���������������������������������������������������������������������������������������������� 308 Azure SQL Database ������������������������������������������������������������������������������������������������������������ 308 SQL Database in Fabric ������������������������������������������������������������������������������������������������������������� 309 A Common Bond ����������������������������������������������������������������������������������������������������������������������� 310 T-SQL ����������������������������������������������������������������������������������������������������������������������������������� 310 Engine ���������������������������������������������������������������������������������������������������������������������������������� 311 Tools ������������������������������������������������������������������������������������������������������������������������������������ 311 Fabric ���������������������������������������������������������������������������������������������������������������������������������� 311 AI ����������������������������������������������������������������������������������������������������������������������������������������� 312 Copilots �������������������������������������������������������������������������������������������������������������������������������� 312 The Future Is Bright ������������������������������������������������������������������������������������������������������������������ 312 Index ��������������������������������������������������������������������������������������������������������������������� 315 Table of ConTenTs
📄 Page
12
xiii About the Author Bob Ward is Principal Architect for the Microsoft Azure Data team, overseeing the development of Microsoft SQL from ground to cloud to fabric. With more than 32 years at Microsoft, Bob has contributed to every version of SQL Server, from OS/2 1.1 to SQL Server 2025, including Azure SQL and SQL Database in Fabric. A renowned speaker on SQL Server, Azure SQL, AI, and Microsoft Fabric, Bob frequently presents on new releases, internals, and specialized topics at events such as SQLBits, Microsoft Build, Microsoft Ignite, PASS Summit, Fabric Community Conference, and VS Live. Follow him on Twitter @bobwardms or connect on LinkedIn at linkedin.com/in/bobwardms. Bob is the author of several Apress books, including Pro SQL Server on Linux, SQL Server 2019 Revealed, Azure SQL Revealed, SQL Server 2022 Revealed, and Azure SQL Revealed, 2nd Edition.
📄 Page
13
xv About the Technical Reviewer Raj Pochiraju is Principal Product Owner for SQL Server 2025 at Microsoft, bringing over 20 years of dedicated experience with the company. Throughout his career, Raj has maintained a deep focus on the SQL Server product, both on-premises and in Azure SQL cloud environments. He began his journey during the SQL Server 6.0 era, joining Microsoft as a field engineer where he specialized in troubleshooting and resolving critical issues affecting mission- and business-critical SQL Server workloads. Leveraging his extensive expertise, Raj pioneered the development of SQL Server RAP as a Service—a proactive solution designed to help customers implement best practices for SQL Server. He was also a founding member of Microsoft’s flagship Database Migration Service (DMS), guiding organizations in migrating their SQL Server databases to Azure SQL. Raj has also led the development of Arc-enabled SQL Server, a technology that extends Azure services to SQL Servers running outside of Azure, empowering customers to optimize their operations and management. Raj now leads the release of SQL Server 2025, an AI-ready enterprise database.
📄 Page
14
xvii Acknowledgments First and always first, I want to thank God for the gift of his son, Jesus. I believe with all my heart that Jesus Christ is my savior and the redemption of my life. I’m always looking for a firm foundation, and I believe I have it in Jesus. No one makes a bigger sacrifice when I write books than my amazing, beautiful wife, Ginger. I’ve been married now for over 36 years, and I am so humbled that God brought Ginger into my life. She is the best example I know for our family motto of “grace and truth.” She is my partner for life, and I don’t thank her enough for everything she does for me (especially those “Hey, listen what I learned today” moments). My sons, Troy and Ryan, are the light of my life. I believe God intended for me to raise better men than myself. Each and every time I see them, I can see that I am fulfilling that promise. And to my incredible daughter-in-law Blair, who is not only an inspiration to me but also the mother of my future granddaughter Elizabeth. Elizabeth may actually be born when this book comes out, but maybe years later she will read this and understand how much she means to “Papa.” I also look forward so much to having Claudia Ludden as my future daughter-in-law. She is engaged to my son Troy, and I look forward to having her as part of our family for years to come. I also want to thank my mother, Annette Gibaud, who is and will always be my “Mom” and an inspiration and example for me for my entire life. A huge thank you to Apress. Shaul Elson has such patience! He is so professional and has balanced so well nudging me to finish this book while allowing me to ensure I create something of value and quality. I also want to thank Gryffin Winkler for all the logistics of making this book a reality. In addition, I want to personally thank Welmoed Spahr, Vice President at Springer, for all her support in publishing my books. Apress gave me a chance so many years ago, and I love that they let me write in my own conversational style. You will see many different people from Microsoft show up in the book with quotes or mentions. There are so many people across different teams that made SQL Server 2025 possible, which has made the book possible. Here are a few though I’ll call out without whom I could not have written this book.
📄 Page
15
xviii Thanks for the leadership support I’ve received from Arun Ulag, Shireesh Thota (thank you, Shireesh, for writing the foreword), my current manager Priya Sathy, and the legendary Slava Oks. But I also want to call out my former managers Asad Khan and Sanjay Mishra. Without their support, we would not have launched SQL Server 2025, nor would I have authored this book. A huge special thanks to Paulette Zimmerman. She is Chief of Staff for Shireesh but also my friend and colleague at Microsoft. Paulette, thank you for everything you have done to have my back all the time. A huge special callout to Naveen Prakash, one of the legends who runs much of our engineering team for SQL. I’m sure Naveen feels often I’m his nemesis because I push him so hard for our customers. What he doesn’t know is that I have the utmost respect for his technical knowledge, his customer passion, his passion for the quality of our product, and how he takes care of his engineers. Right alongside Naveen is Alexey Eksarevskiy. I’ve known Alexey for many years, and he is one of the engineering leaders for whom I have such respect. Not only was he instrumental in delivering our AI features but also the overall release. Our PM team is so talented, but I have to mention Ajay Jagannathan first. Ajay was with me way back in 2023 as we started planning this release. He is a friend and colleague that is one of the best I’ve known. And we were so fortunate to have Raj Pochiraju continue the torch in 2025 to make this release one of the best ever. And I want to thank Raj personally for being the technical reviewer of the book. He must have pulled some late-night hours as I cranked out chapters late in the publishing cycle. Thank you, Raj! I also want to call out Deepak Khare. Deepak is someone behind the scenes who has the thankless job of managing our release. He does this with such thoroughness and professionalism. We are lucky to have him. So many others in our engineering teams, but I spent perhaps the most time with folks like Muazma Zahid and Davide Mauri on AI, Dimitri Furman on engine, and Nikola Zagorac on Change Event Streaming. Our marketing team as always was brilliant, but no one spent more time and energy on this release than Steven Wang. Steven showed such incredible patience with me throughout the entire release, and we would not have shipped this successfully without him. You will hear from them and others with quotes on their journey as you read the book. Finally, all of our MVPs and community were incredibly helpful to help us test, give us feedback, and get the word out about SQL Server 2025. I’ve always said, without the #sqlfamily we don’t have a product, and that holds true today. aCknowledgmenTs
📄 Page
16
xix Foreword Every so often, a new release reminds us why SQL Server continues to be the backbone of data infrastructure for so many organizations. SQL Server 2025 is one of those moments. It brings together the reliability and security that enterprises expect with the flexibility and innovation that modern development demands. For developers, it opens new doors by simplifying integration with AI, cloud, and analytics platforms without introducing unnecessary complexity. For DBAs, it reinforces what has always made SQL Server dependable: strong performance, robust tooling, and a consistent management experience across environments. This release is significant for introducing AI into our beloved relational database. It also reflects years of feedback from customers and partners. It is grounded in the belief that innovation should enhance, not disrupt, the skills and investments teams have built over time. Whether you are working on a high-throughput transactional system or building out real-time analytics, SQL Server 2025 offers capabilities that help you move forward with confidence. Bob Ward has played a central role in this journey. I have known Bob for many years and continue to admire the combination of deep technical insight and humility he brings to every interaction. He has a rare ability to make complex database internals understandable and relevant to both developers and IT professionals. This is not just because he has worked on SQL Server for decades, but because he genuinely cares about helping others succeed with it. For SQL 2025, he has donned the role of the architect driving many of the pivotal product decisions and shaping it. Perhaps just as important as his technical contributions is the role Bob has played in building and nurturing the SQL Server community. He has been a teacher in the truest sense of the word: sharing knowledge, guiding newcomers, and encouraging curiosity at every turn. Whether on stage at conferences, in online forums, or through blog posts or late-night troubleshooting calls, Bob has always led with empathy and clarity. His presence has helped shape not just how we understand SQL Server, but how we support each other in this shared ecosystem. In SQL Server 2025 Unveiled, Bob does more than just document what is new in SQL Server 2025. He connects the technical to the practical. He gives us a roadmap for
📄 Page
17
xx applying new capabilities to real-world problems. Most importantly, he reminds us that even as the tools evolve, the heart of relational database workloads continues to be rooted in security, resilience, performance, and developer-friendly experiences. Shireesh Thota, Corporate Vice President, Databases, Microsoft foreword
📄 Page
18
xxi Introduction SQL Server is in my blood. I’ve been working now with every version of SQL Server that has shipped since SQL Server 1.0 on OS/2 with just a few diskettes. To see the product blossom to what it is today is nothing short of a dream for me. This book is a testament to that dream. To write about a product that honors the tradition of decades of work on an industry-proven database engine combined with the innovation of the latest in technology is an incredible story. A story that deserves to be told. I hope I give it justice in this book. I built this book specifically for those who already know the fundamentals of SQL Server. However, I’ve learned from my past books that even those who have some knowledge of SQL Server will see great value from it. As with past books (except for Azure SQL Revealed, written in 2020), this book was written all over the world. Any author who does this “on the side” knows you have to find any small moment in time to author a book. So this book was written in hotel rooms, on beaches, on airplanes and in airports, in doctor office waiting rooms, on subways and trains, riding in the car while my wife drove, and any other spare moment I could squeeze in to get even the smallest of paragraph done. The book was a journey from places like Sarasota (with my friends Tom and Janet Grubish) and Orlando, Florida; Las Vegas (multiple times); Redmond (multiple times); Seattle; Dallas; Charleston; Savannah (the home of Troy and Claudia); a cruise ship (with our close friends the Jollys); Paso Robles, California (with our friends the Peschells); San Jose, California (at the NVIDIA GTC event); Hilton Head Island; London (including trains and tubes); Abilene, Texas (including the home of Mark and Loria Beale and Brandon and Paige Beale and the famous Fairway Oaks Country Club); New York City; Genesee, Colorado (our home away from home); Vienna, Austria; and on walks around my house at Green Valley Park and the confines of my home (Ward Ranch) in North Richland Hills, Texas. As with all of my books, the first chapter is a story of the making of this product. If that is not your thing, you can dive right into Chapter 2 to learn details of installation and upgrade. However, I have feedback that many people love to hear the “making of …” story, so you might enjoy it. Chapter 1 also though includes an introduction into the overall release, so I feel you will want to at least browse this chapter toward the end of it.
📄 Page
19
xxii I have examples throughout the book that you can get along with the book or at my site at aka.ms/sql2025bookextra, including any errata or details about SQL Server 2025 that are revealed after the writing of this book. Chapters 3 and 4 are all about AI. AI is one of the biggest leaps in innovation we have made with SQL Server in years. I felt like I needed to introduce fundamental concepts of AI first in Chapter 3 and then bring in how SQL Server 2025 fits into that picture in Chapter 4. Chapter 5 is all about developers, so if you want to jump right into JSON, Regular Expressions (RegEx), T-SQL, Change Event Streaming (CES), and REST (Representational State Transfer) APIs, you will love this chapter. Then in Chapter 6, I pivot to talk about Azure Arc, especially how it lights up new security possibilities to go “passwordless” with a Managed Identity. The “meat and potatoes” of SQL Server is the engine, and Chapter 7 will not disappoint. This is a huge chapter covering security, performance, and availability. Core engine #sqlhead lovers will love the details. I conclude the book by talking about Fabric Mirroring for SQL Server 2025 in Chapter 8, which I think anyone should read to see what is possible with the Microsoft Fabric platform. And the final chapter is the story of Microsoft SQL, ground to cloud to fabric, so you know that SQL Server 2025 is at the heart of an amazing database platform everywhere you need it. Authoring books is a labor of love, and I enjoyed writing this book just as much as the previous ones. Authors just don’t write. We learn along the way, and I learned myself a few things I didn’t know as part of this journey. When you are done with this book, my hope is you understand why we call SQL Server 2025 the AI-ready enterprise database. It is ready for you today! Bob Ward, North Richland Hills, Texas September 2025 InTroduCTIon
📄 Page
20
1 © Bob Ward 2025 B. Ward, SQL Server 2025 Unveiled, https://doi.org/10.1007/979-8-8688-1847-9_1 CHAPTER 1 The AI-Ready Enterprise Database SQL Server 2025 accelerated into one of the most amazing projects I’ve been a part of at Microsoft in my 32-year career. In this chapter, you will learn some fun history of the origins of SQL Server 2025 and how it came to be. You will also get an introduction into SQL Server 2025 and its major new capabilities. As part of the introduction in this chapter, I’ll talk about foundations from past releases, important tools, customer stories, and a new architecture to realize with the modern innovations in SQL Server 2025. I’ll close by giving you additional resources you can use on your journey to make the most of SQL Server 2025. If you want to skip the history of the making of the product, go right to the section titled “Foundations” later in this chapter. Project Kauai Is Born I don’t get nervous many times these days working at Microsoft when presenting an idea or proposal to our leaders. But I will admit as I was waiting for my Vice President at the time, Asad Khan, to meet me in downtown Seattle during Microsoft Build in 2024, I was a bit uneasy. I was presenting at Microsoft Build that week, but instead of catching a ride to our Microsoft campus in Redmond, Washington, I had asked Asad to come to downtown Seattle to meet me, Muazma Zahid, Anna Hoffman, and my manager at the time, Sanjay Mishra. Muazma, Ajay Jagannathan, and I had been working on a proposal for SQL Server vNext (anytime we don’t have a project name, we just call the next version of SQL Server vNext). And we wanted Asad to come downtown to the Seattle Summit Convention Center for a focused meeting on such an important topic. Our meeting went better than