Practical Database Auditing for Microsoft SQL Server and Azure SQL: Troubleshooting, Regulatory Compliance, and Governance

  • 2h 48m
  • Josephine Bush
  • Apress
  • 2022

Know how to track changes and key events in your SQL Server databases in support of application troubleshooting, regulatory compliance, and governance. This book shows how to use key features in SQL Server ,such as SQL Server Audit and Extended Events, to track schema changes, permission changes, and changes to your data. You’ll even learn how to track queries run against specific tables in a database.

Not all changes and events can be captured and tracked using SQL Server Audit and Extended Events, and the book goes beyond those features to also show what can be captured using common criteria compliance, change data capture, temporal tables, or querying the SQL Server log. You will learn how to audit just what you need to audit, and how to audit pretty much anything that happens on a SQL Server instance. This book will also help you set up cloud auditing with an emphasis on Azure SQL Database, Azure SQL Managed Instance, and AWS RDS SQL Server.

You don’t need expensive, third-party auditing tools to make auditing work for you, and to demonstrate and provide value back to your business. This book will help you set up an auditing solution that works for you and your needs. It shows how to collect the audit data that you need, centralize that data for easy reporting, and generate audit reports using built-in SQL Server functionality for use by your own team, developers, and organization’s auditors.

What You Will Learn

  • Understand why auditing is important for troubleshooting, compliance, and governance
  • Track changes and key events using SQL Server Audit and Extended Events
  • Track SQL Server configuration changes for governance and troubleshooting
  • Utilize change data capture and temporal tables to track data changes in SQL Server tables
  • Centralize auditing data from all your databases for easy querying and reporting
  • Configure auditing on Azure SQL, Azure SQL Managed Instance, and AWS RDS SQL Server

About the Author

​Josephine Bush has more than 10 years of experience as a database administrator. Her experience is extensive and broad-based, including experience in financial, business, and energy data systems using SQL Server, MySQL, Oracle, and PostgreSQL. She is a Microsoft Certified Solutions Expert: Data Management and Analytics. She holds a BS in Information Technology, an MBA in IT Management, and an MS in Data Analytics. She is the author of Learn SQL Database Programming. You can reach her on Twitter @hellosqlkitty.

In this Book

  • Introduction
  • Why Auditing Is Important
  • Types of Database Auditing
  • What Is SQL Server Audit?
  • Implementing SQL Server Audit via the GUI
  • Implementing SQL Server Audit via SQL Scripts
  • What Is Extended Events?
  • Implementing Extended Events via the GUI
  • Implementing Extended Events via SQL Scripts
  • Tracking SQL Server Configuration Changes
  • Additional SQL Server Auditing and Tracking Methods
  • Centralizing Audit Data
  • Create Reports from Audit Data
  • Auditing Azure SQL Databases
  • Auditing Azure SQL Managed Instance
  • Other Cloud Provider Auditing Options