SQL Interview: 53 Dynamic SQL and Ownership Chaining
This is a post in the SQL Interview series. These aren’t trick or gotcha questions, they’re just questions designed to scope out a candidate’s knowledge around SQL Server and Azure SQL Database.
Section: Security Level: Advanced
Question:
You have a table named Sales.Customers that is owned by dbo. You also have a stored procedure named Sales.FindCustomers that searches the Sales.Customers table.
A user Terry is given permission to the procedure and can successfully execute the procedure.
2025-06-05