Or do they need to be granted to delete a record from a table only when they execute a query which is not a stored procedure?
Does the user who executes a stored procedure which contains a delete query need delete permission?
No, and that's one of the reasons you can abstract such operations into a stored procedure.
All the user needs is EXEC
permission granted on the stored procedure. This is because the author of the stored procedure is assumed to have allowed only valid cases of deleting the records from the table.
do they need to be granted to delete a record from a table only when they execute a query which is not a stored procedure
Right, they need DELETE
permissions on the table to delete a record using DELETE
DML operation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With