SYSADMIN is Snowflake’s primary built-in role for creating objects such as databases, schemas, and virtual warehouses. It supports pipeline setup and can access data through granted roles. Custom roles are preferred in production, but SYSADMIN is practical before they exist. section 2.1 section 10.1.1
Use SYSADMIN with these operational boundaries:
- Create pipeline infrastructure such as databases, schemas, and warehouses. section 2.1
- Use custom roles when available; SYSADMIN commonly receives those roles to access data and assume role privileges. section 10.1.1
- Avoid ACCOUNTADMIN for object creation and grants because it becomes the owner and complicates later administration. section 2.1 section 10.1.1
Create initial pipeline objects
Select SYSADMIN, then create the BAKERY_DB database, ORDERS schema, and XSMALL BAKERY_WH warehouse with executable SQL. section 2.1
use role SYSADMIN; create database BAKERY_DB; create schema ORDERS; create warehouse BAKERY_WH with warehouse_size = 'XSMALL';
Run the baseline SYSADMIN setup commands for a database, schema, and virtual warehouse. section 2.1
