Connecting to New Databases
Granting Access for the Database and Schema to the Application
Identifying the Name of the Application
/*
Provides details about installed applications within the Snowflake instance.
*/
SHOW APPLICATIONS;SQL to Grant Database and Schema Access
GRANT USAGE ON DATABASE <<Database Name>> TO APPLICATION <<Application Name>>;
GRANT USAGE ON SCHEMA <<Database Name>>.<<Schema Name>> TO APPLICATION <<Application Name>>;
GRANT CREATE TABLE ON SCHEMA <<Database Name>>.<<Schema Name>> TO APPLICATION <<Application Name>>;
GRANT CREATE VIEW ON SCHEMA <<Database Name>>.<<Schema Name>> TO APPLICATION <<Application Name>>;
GRANT SELECT ON ALL TABLES IN SCHEMA <<Database Name>>.<<Schema Name>> TO APPLICATION <<Application Name>>;
GRANT INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA <<Database Name>>.<<Schema Name>> TO APPLICATION <<Application Name>>;Configuring the Application to Use the Granted Database and Schema
Last updated
Was this helpful?
