Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

calling a SP inside a SP. - response (4) by Fred

$
0
0

See the explanation and chart in the DDL manual under CREATE PROCEDURE regarding which user's and/or database's rights are checked with different SQL SECURITY options. For this case specifically, if temp has SQL SECURITY
DEFINER (default): Both creator (user issuing CREATE PROCEDURE temp) and owner (database containing SP temp) must have EXECUTE PROCEDURE permission on temp1; invoker (caller of temp) does not need permission on temp1.
OWNER: Owner of temp must have permission on temp1; creator or invoker need not (if different from owner)
CREATOR: Creator of temp must have permission on temp1; owner or invoker need not (if different from creator)
INVOKER: Invoker of temp must also have permission on temp1; creator or owner need not (if different from invoker)
Note that a database / user does not automatically receive EXECUTE PROCEDURE permission on itself.


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>