Medium severitypermission
Power BI Refresh Error:
262
What does this error mean?
The database user does not have permission to create tables in the specified database.
Common causes
- 1ADF sink is configured to create the target table automatically but the service account lacks DDL permissions
- 2The staging schema for ADF PolyBase or COPY statement does not have CREATE TABLE granted
- 3dbt is running with a service account that has only read access
How to fix it
- 1Step 1: Grant CREATE TABLE permission: GRANT CREATE TABLE TO [username];
- 2Step 2: Also grant schema ALTER permission (required to create objects in a schema): GRANT ALTER ON SCHEMA::[dbo] TO [username];
- 3Step 3: For dbt or ADF sinks that need full DDL access, consider using the db_ddladmin role: ALTER ROLE db_ddladmin ADD MEMBER [username];
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-262-database-engine-error