title: Snowflake: Execution error in store procedure : SQL compilation error: Object does not exist or not authorized. At Statement.execute
body: <p>I'm totally confused by the permission model of the Snowflake system.  I created a database, created a stored procedure within that database, and tried to call that stored procedure all with the same user in the SYSADMIN role.  I get the error "Execution error in store procedure: SQL compilation error: Object  does not exist or not authorized. At Statement.execute"</p>
  
  <p>I'm not even sure where to start.  How does my user not have permission to a table that was created by said user?</p>
  
  <p><a href="https://i.stack.imgur.com/c268n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c268n.png" alt="Screenshot of procedure and error message"></a></p>
  
  <p><a href="https://i.stack.imgur.com/jPYxd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jPYxd.png" alt="Second Screenshot w/ Database structure visible."></a></p>