# Stored Procedure

## “execute as”

Podemos determinar como será executado o código dentro do SP:

![](https://560658675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO8PI3zA4v3P4FeW3uYOw%2Fuploads%2Fcgs5D9I6FX8zKOBpfbf3%2Fa.png?alt=media\&token=66365e59-f712-4ac1-baca-758506b1ffc5)

Opções do Execute As:

* **Caller** — execute with the owner permissions of the user executing the stored procedure.
* **Self** — execute with the permission of the user who created or altered the stored procedure.
* **Owner** — execute with the permissions of the owner of the stored procedure.
* **\<user>** — execute with the permission of the specific named user.
