User and role
Connecting DirectQuery to Snowflake first requires a user linked to a role with sufficient privileges. The following actions require a Snowflake ‘power user’ account.How to create a role
The Snowflake role creation reference describes how to create a role.How to grant required privileges to this role
DirectQuery required privileges are:USAGEprivilege on target warehouseUSAGEprivilege on target databaseUSAGEprivilege on target schemaSELECTprivilege on schema queryable objects (tables, views)
How to create a user linked to this role
The last step is to create a user with the following attributes:- login
- password
- default role (the newly created role)
- default warehouse (warehouse which will be used to run the queries)
- default namespace (
YOUR_DATABASE.SCHEMA)
Basic authentication connection
Connection is done through DirectQuery Snowflake connector passing the following minimal properties:- JDBC connection string
- login
- password