SQL Server Science
Technical Articles for the DBA / Developer
Home » security

Auditing Microsoft Entra ID Authentication in SQL Server

2026-11-14 · by Hannah Vernon · in security

Find Microsoft Entra ID logins and users in SQL Server 2022 and later from T-SQL, and learn which Entra settings only the Azure portal or CLI can show.

Finding Unencrypted SQL Server Connections, and the Instances That Accept Them

2026-11-12 · by Hannah Vernon · in security

Use sys.dm_exec_connections to list SQL Server sessions that aren’t encrypted, check Force Encryption, and see how driver defaults changed.

Auditing Linked Server Security: Who Connects as Whom

2026-11-08 · by Hannah Vernon · in security

A linked server login mapping can let every login run as one remote login. Tests on SQL Server 2025 and an audit query to find the risky mappings.

Cross-Database Ownership Chaining: What a db_owner Can Reach

2026-11-02 · by Hannah Vernon · in security

How cross-database ownership chaining works, a test on SQL Server 2019 and 2025 of what a db_owner can read with it, and a query to find it.

Reading the SQL Server Error Log Without sysadmin

2026-10-18 · by Hannah Vernon · in security

SQL Server 2022 added VIEW ANY ERROR LOG. I tested the newer permission against sp_readerrorlog and sp_enumerrorlogs.

Can You Delete That Certificate? The Store Will Not Tell You.

2026-09-17 · by Hannah Vernon · in security

There is a certificate in LocalMachine\My on one of your SQL Servers. Nobody knows what it is for. The subject is unhelpful, it was issued before you started, and the person who installed it has…

1 2 … 6 Next »

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • Data Architecture
  • DMVs
  • documentation
  • extended-events
  • Git for DBAs
  • High Availability
  • Hot Takes
  • Internals
  • maintenance
    • patching
  • Opinion
  • performance
  • PostgreSQL
  • Professional Development
  • recovery
  • reporting
  • ROLLBACK;
  • security
    • data security
  • service broker
  • SQL Server Agent
  • statistics
  • sys
  • t-sql
    • xml
  • tools
    • data masking
    • wsus
  • troubleshooting
  • Uncategorized

Pages

  • About Hannah Vernon
  • About SQL Server Science
  • Blog Series
    • Backup & Recovery from First Principles: Series Contents
    • Database as a Versioned Contract: Series Contents
    • Extended Events in Production: Series Contents
    • Git for DBAs: Series Contents
    • How SQL Server Stores Data: Series Contents
    • Logins, SIDs, and Kerberos from First Principles: Series Contents
    • Proving the Restore: Series Contents
    • T-SQL Style Guide, Tested: Series Contents
    • The UNKNOWN Problem: NULL Traps in T-SQL, Series Contents
    • Undocumented Changes in SQL Server 2022 and 2025: Series Contents
    • Work That Flows: Kanban for DBAs: Series Contents
  • Get Better Help with a Minimal, Complete, and Verifiable Example, or MCVE
  • Privacy Policy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2026 SQL Server Science