Get Database Owners
mssql_db_ownersList SQL Server user databases not owned by sa, including orphaned owners whose login no longer exists, to find ownership issues.
Instructions
Database owners: user databases not owned by sa (SID 0x01, so a renamed sa still counts), including orphaned owners whose login no longer exists. Not available on Azure SQL Database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||