TiNTi
TiNTi

Reputation: 43

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?

Upvotes: 4

Views: 4714

Answers (1)

Lukasz Szozda
Lukasz Szozda

Reputation: 176064

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>';

Upvotes: 6

Related Questions