Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Procedure Ownership?

On Snowflake that is easy to check other objects ownership by running (e.g.): "SHOW TABLES" - column OWNER will be there.

If, however, we try "SHOW PROCEDURES", ownership is not shown.

Do we have a workaround for that?

like image 988
TiNTi Avatar asked Oct 20 '25 19:10

TiNTi


1 Answers

Using INFORMATION_SCHEMA.PROCEDURES:

This Information Schema view displays a row for each stored procedure defined in the specified (or current) database.

PROCEDURE_OWNER Name of the role that owns the stored procedure

SELECT *
FROM INFORMATION_SCHEMA.PROCEDURES
WHERE PROCEDURE_NAME ILIKE '<procedure_name_here>';
like image 105
Lukasz Szozda Avatar answered Oct 25 '25 14:10

Lukasz Szozda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!